Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 2004 15:02:17 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Giorgos Keramidas <keramida@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: RFC: automated way of removing old base system files (only for a recent 6-current!)
Message-ID:  <1098709337.417cf95958202@netchild.homeip.net>
In-Reply-To: <20041024230428.GA1439@gothmog.gr>
References:  <20041016142502.6362d396@Magellan.Leidinger.net> <20041023.194558.63828926.imp@bsdimp.com> <20041024124805.378e6bc3@Magellan.Leidinger.net> <20041024131927.GA60644@voi.aagh.net> <12D1A2B7719A7312364675CC@[192.168.1.16]> <20041024230428.GA1439@gothmog.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
Zitat von Giorgos Keramidas <keramida@freebsd.org>:

> On 2004-10-24 09:38, "Jason C. Wells" <jcw@highperformance.net> wrote:

[list of commands to delete old files]

> > My motivation was to delete items that I had NO_* (bind, sendmail) options
> > for in make.conf.

Handling of NO_* is on my TODO list.

> I use something similar here.  I run find on specific directories and
> use the -x option though with -mtime:
[...]
> Then I manually skim through the lists and see if I want to keep
> something listed in there.  Eventually, I delete the obsolete files
> with something like:

I don't think we can do this in an automated fashion. We can't be sure
there are no files from the user/admin in the base system directories.
We also can't assume a specific partition layout. We also don't know
about strange symlinks, so writting such an automation isn't straight
forward. The approach I've choosen needs a little bit of initial amount
of work to gather a list of files to remove, but IMO it's the safest
way of removing files without the fear of causing strange sideeffects.

Bye,
Alexander.

-- 
http://www.Leidinger.net/     Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org/        netchild @ FreeBSD.org  : PGP ID = 72077137
Everybody is somebody else's weirdo.
		-- Dykstra



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