Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2007 14:37:06 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        ronggui <ronggui.huang@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: The best way to keep the system clean?
Message-ID:  <20070924143540.A28769@wojtek.tensor.gdynia.pl>
In-Reply-To: <38b9f0350709240517x5d6f976fn9fb2f76105dc51e6@mail.gmail.com>
References:  <38b9f0350709240517x5d6f976fn9fb2f76105dc51e6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070924143540.A28769>