I ran 
	
	
	
		
It was my understanding that
				
			 pkg autoremove -n to see if there was any clutter on my desktop.  It reported some 380 packages to be removed.  I ran  pkg leaf and discovered that some packages I had installed were listed by  pkg autoremove.
		Code:
	
	pkg autoremove -n > pkg.auto  # get list of pkgs to be removed.
pkg leaf > pkg.leaf  # get list of packages explicitly installed
# packages to be removed by autoremove
# list packages that are known to have been installed
pkg leaf > pkg.leaf
# list packages that autoremove reports
pkg autoremove -n > pkg.auto
# munge data files to get package names
# packages to be removed
# remove heading and training comment lines and version numbers
tail -n +5  pkg.auto | ghead -n -4 | gsed "s/^[ \t]*//" - | cut -d":" -f1 - | sort > pkg.remove
# packages installed
# remove version numbers
cat pkg.leaf | sort | rev | cut -d"-" -f 2- | rev > pkg.install
# find common packages (file1 and file2 must be sorted in the same order)
comm -1 -2 pkg.remove pkg.install > pkg.overlap
wc -l pkg.overlap
     154 pkg.overlapIt was my understanding that
 pkg autoremove would not attempt to remove pkgs that had been explicitly installed.  Was I wrong? 
			     
 
		