I've noticed something in pkg autoremove's behavior that could potentially be a bug or unwanted behavior.
Yesterday I did
I've only installed packages via pkg, and never installed custom builds or anything like that.
If I do
I did some research and found these things:
	
	
		
			
				
					
						 
					
				
			
			
				
					
						
							 forums.freebsd.org
						
					
					forums.freebsd.org
				
			
		
	
	
	
	
	
		
			
				
					
						 
					
				
			
			
				
					
						
							 forums.freebsd.org
						
					
					forums.freebsd.org
				
			
		
	
Docbook seems to have been a problem in the past when using autoremove. It shouldn't be removed.
What I'm wondering is if this is a bug in pkg, or can I somehow avoid this behavior of pkg?
				
			Yesterday I did
pkg autoremove. These were the packages it then removed:docbook, docbook-sgml, docbook-xml, docbook-xsl, iso8879, kf5-kdoctools, sdocbook-xml, xmlcatmgr, xmlcharent
I've only installed packages via pkg, and never installed custom builds or anything like that.
If I do
pkg upgrade after this, the packages that have just been removed are reinstalled. I did some research and found these things:
 
					
				the usual not logical behaviour of pkg autoremove
Like in the subject. It never been coherent to me.  On a brand new 64 bit box I just built using port and working perfectly fine I do have this situazione:  $ sudo pkg check -d Password: Checking all packages: 100% $   Then if I run autoremove to clean some bit up, it propose to delete even...
				 
					
				pkg autoremove: totally unreliable
Like in the subject.  The experience with this pkg autoremove command is totally tragic in this perfectly working FreeBSD 11.0-RELEASE system.   % sudo pkg autoremove Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 63 packages:  Installed packages...
				Docbook seems to have been a problem in the past when using autoremove. It shouldn't be removed.
What I'm wondering is if this is a bug in pkg, or can I somehow avoid this behavior of pkg?
 
			     
 
		 
 
		