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

From: Alexander Leidinger <Alexander_at_Leidinger.net>
Date: Mon, 25 Oct 2004 15:02:17 +0200
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 _at_ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org/        netchild _at_ FreeBSD.org  : PGP ID = 72077137
Everybody is somebody else's weirdo.
		-- Dykstra
Received on Mon Oct 25 2004 - 11:02:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:19 UTC