RFC: automated way of removing old base system files (only for a recent 6-current!)

Alexander Leidinger Alexander at Leidinger.net
Mon Oct 25 06:02:39 PDT 2004


Zitat von Giorgos Keramidas <keramida at freebsd.org>:

> On 2004-10-24 09:38, "Jason C. Wells" <jcw at 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


More information about the freebsd-current mailing list