From owner-freebsd-questions Mon Oct 7 1:10: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E80637B401 for ; Mon, 7 Oct 2002 01:10:01 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0EBE43E4A for ; Mon, 7 Oct 2002 01:09:59 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g9789PVc005307; Mon, 7 Oct 2002 09:09:25 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g9789KcM005306; Mon, 7 Oct 2002 09:09:20 +0100 (BST) Date: Mon, 7 Oct 2002 09:09:20 +0100 From: Matthew Seaman To: Jean-Yves Lefort Cc: freebsd-questions@FreeBSD.ORG Subject: Re: make installworld & obsolete files Message-ID: <20021007080920.GA4922@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , Jean-Yves Lefort , freebsd-questions@FreeBSD.ORG References: <20021006223115.GA54933@jsite.lefort.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021006223115.GA54933@jsite.lefort.net> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-13.4 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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