From owner-freebsd-stable Wed Jan 10 13:15:19 2001 Delivered-To: freebsd-stable@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 468A337B6A2 for ; Wed, 10 Jan 2001 13:15:01 -0800 (PST) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.20 #1) id 14GSWg-0002RW-00; Wed, 10 Jan 2001 21:11:22 +0000 Received: (from ben@localhost) by strontium.scientia.demon.co.uk (8.11.1/8.11.1) id f0ALBLt28368; Wed, 10 Jan 2001 21:11:21 GMT (envelope-from ben) Date: Wed, 10 Jan 2001 21:11:21 +0000 From: Ben Smithurst To: Dan Larsson Cc: FreeBSD Stable List Subject: Re: Cleaning out old/unused files after make world Message-ID: <20010110211121.W79365@strontium.scientia.demon.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Larsson wrote: > The machine i question has stepwise been updated from 3.2R > to 4.2S, and I'm guessing some files are nolonger needed by > the system. > > How can I find out which files can be removed? Start with find(1)'s -mtime option, removing files older than your last buildworld in appropriate directories. Where `appropriate directories' are those completely updated by buildworld (i.e. NOT /etc, /usr/local, and so on). Mainly I'd go for /bin /sbin /usr/bin /usr/sbin /usr/libexec /usr/share /usr/libdata. Also, I wouldn't remove old libraries from /usr/lib since stuff in /usr/local might still be using them. And be careful what you delete, of course. :-) -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message