Re: The best way to keep the system clean?

[ Available lists | Index of freebsd-questions | Month of Sep 2007 | Week of 24 Sep 2007 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Date
24 Sep 2007 12:37:14
Subject
Re: The best way to keep the system clean?
Message-ID
20070924143540.A28769@wojtek.tensor.gdynia.pl

In reply to
References to
Replies
Referenced by

[ Hide this part ]
> 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.


Elapsed time: 0.099 seconds