Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2007 13:40:41 +0100
From:      RW <mlt01@mlists.homeunix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: The best way to keep the system clean?
Message-ID:  <20070924134041.1d7bfb69@gumby.homeunix.com.>
In-Reply-To: <1190636701.2907.3.camel@viola.izb.knu.ac.kr>
References:  <38b9f0350709240517x5d6f976fn9fb2f76105dc51e6@mail.gmail.com> <1190636701.2907.3.camel@viola.izb.knu.ac.kr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 24 Sep 2007 21:25:01 +0900
Byung-Hee HWANG <bh@izb.knu.ac.kr> wrote:

> On Mon, 2007-09-24 at 20:17 +0800, ronggui wrote:
> > 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.
> > 

> > 
> The best way is using -RELEASE anytime. That's enough to me. If I need
> to install/deinstall, I use pkg_add/pkg_delete. It's just my opinion.

That doesn't remove unwanted dependencies, which is what the question
was about.

Try ports-mgmt/pkg_cutleaves or, if  you have portmanager installed
look at the -slid option.

> > And the related general question is, what's the best way to keep my
> > system clean? Thanks.

Another important tool is portsclean (installed with portupgrade),
which cleans-out obsolete distfiles, packages, and build directories.

Also look at the options in /etc/defaults/periodic.conf
and /etc/defaults/rc.conf which contain some useful scripts for
automatically deleting things.



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