Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2002 09:09:20 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Jean-Yves Lefort <jylefort@brutele.be>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: make installworld & obsolete files
Message-ID:  <20021007080920.GA4922@happy-idiot-talk.infracaninophi>
In-Reply-To: <20021006223115.GA54933@jsite.lefort.net>
References:  <20021006223115.GA54933@jsite.lefort.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 07, 2002 at 12:31:15AM +0200, Jean-Yves Lefort wrote:

> Is the make installworld command deleting files belonging to older
> FreeBSD versions and no longer present in the version being installed?

No.  Obsolete files are left lying about on the hard drive.  Usually
there are very few files that drop out between updates, so this isn't
a massive problem.  It can be significant if you start playing with
the NO_FOO options in /etc/make.conf or for a major version upgrade.
 
> If no, is there a reliable way to identify those files in order to be
> able to delete them by hand?

If you go through a {build,install}world cycle and you don't use the
'-C' flag for install (set in /etc/make.conf), then all the files you
install will have timestamps within a few seconds of each other.  You
can then identify the files that haven't been modified using find,
eg. for the root partition:

    find -x / -mtime +1 -ls \( -name modules.old -o -name etc -o -name dev \) -prune

but you're going to have to go through that list manually to work out
which files are actually surplus to requirements.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
                                                      Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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