From owner-freebsd-questions Fri Mar 21 1:18:46 2003 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 48AE337B401 for ; Fri, 21 Mar 2003 01:18:45 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 863E143F75 for ; Fri, 21 Mar 2003 01:18:43 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b236.otenet.gr [212.205.244.244]) by mailsrv.otenet.gr (8.12.8/8.12.8) with ESMTP id h2L9Id5u008579; Fri, 21 Mar 2003 11:18:40 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.8/8.12.8) with ESMTP id h2L9IcGg001066; Fri, 21 Mar 2003 11:18:38 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.8/8.12.8/Submit) id h2L9IYU4001065; Fri, 21 Mar 2003 11:18:34 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 21 Mar 2003 11:18:34 +0200 From: Giorgos Keramidas To: Daniel Lang Cc: freebsd-questions@FreeBSD.ORG Subject: Re: 5.0 Early adopters question: best way to get rid of old binaries/lib/headers Message-ID: <20030321091834.GB686@gothmog.gr> References: <20030321072109.GA8651@atrbg11.informatik.tu-muenchen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030321072109.GA8651@atrbg11.informatik.tu-muenchen.de> X-RAVMilter-Version: 8.4.2(snapshot 20021217) (terpsi) 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 2003-03-21 08:21, Daniel Lang wrote: > I've started upgrading some of my 4.x boxen to 5.0-current. > The upgrade went smooth and the systems are up and running. > > However, the early adopters guide mentiones some components > which are no longer in the base system (perl, uucp) and obsolete > headers, etc. > > Now I want to get rid of everything which was not installed by the > upgrade (that was a make world-like upgrade). > > I've considered s.th. like this: > > find /usr/lib /usr/lib /usr/include /usr/share /usr/libdata \ > /usr/libexec /usr/sbin -xdev -mtime + > todelete > > and then delete the stuff therein after inspection. > > Would that be a reasonable safe way to go? > Any pitfals? Other suggestions? IMHO, the best way to clean up after source upgrades, if you can temporarily spare a bit of disk space, is to install a new, clean userland in a temporary directory and compare it with root. # mkdir /tmp/testworld # cd /usr/src # make DESTDIR=/tmp/testworld installworld then you can compare a listing of /tmp/testworld with the existing files, and delete what seems like old and stale :) - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message