From owner-freebsd-current Fri Nov 8 15:14:58 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52DA637B401 for ; Fri, 8 Nov 2002 15:14:57 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 817F143E3B for ; Fri, 8 Nov 2002 15:14:56 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (uucp@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id gA8NEt5V077435; Fri, 8 Nov 2002 23:14:55 GMT (envelope-from mark@grondar.org) Received: (from uucp@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id gA8NEtxD077434; Fri, 8 Nov 2002 23:14:55 GMT Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id gA8NDgJC004268; Fri, 8 Nov 2002 23:13:42 GMT (envelope-from mark@grondar.org) Message-Id: <200211082313.gA8NDgJC004268@grimreaper.grondar.org> To: Kris Kennaway Cc: current@FreeBSD.ORG Subject: Re: perl5.6.1 wrapper References: <20021108215352.GA26821@rot13.obsecurity.org> In-Reply-To: <20021108215352.GA26821@rot13.obsecurity.org> ; from Kris Kennaway "Fri, 08 Nov 2002 13:53:53 PST." Date: Fri, 08 Nov 2002 23:13:42 +0000 From: Mark Murray Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > I mean *all* the cruft -- old modules and config files, deprecated binaries > > and man pages, even old shlibs if it's safe. > > I agree with you, and I was giving an example that a lesser form of > this is already required during the upgrade. > > It would be VERY useful if someone could develop a script to do this > (e.g. install various versions of 4.x and do an upgrade, then collect > a complete list of all the stale files). #========================================= #!/bin/sh installdirs= /bin /sbin /usr/bin /usr/sbin /usr/libdata /usr/libexec /usr/include /usr/share /usr/lib for dir in ${installdirs} ; do find ${dir} -type f -ctime +1 -delete find ${dir} -type d -empty -delete find ${dir} -type l -delete done # 4.x -> 5.x only: # rm -rf /kernel* /modules* cd /usr/src && make installworld #========================================= The second "make installworld" is to repopulate your lib/compat/ dirs, rebuild the hierarchy and to catch files (groff support IIRC) that this erroneously deletes. I do this pretty often. M -- o Mark Murray \_ O.\_ Warning: this .sig is umop ap!sdn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message