The best way to keep the system clean?

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Mon Sep 24 05:37:14 PDT 2007


> My problem, many times I install some software from ports, it install
> the dependency software. Then after some time, I find that software
> isn't what I want, and deinstall it. At this point, the dependency
> software isn't necessary as well. Is there a way to clean them
> automatically, like the apt-get autoremove in the Ubuntu system.

possibly there are better methods but i do:

pkg_info|cut -f 1 -d " " >package.list

edit package.list and remove from that list ONLY things you do need.

do pkg_delete `cat package.list`

and pkg_delete will skip everything that is needed for packages you 
removed from list, and will delete everything else.


More information about the freebsd-questions mailing list