Date: Fri, 08 Nov 2002 23:13:42 +0000 From: Mark Murray <mark@grondar.org> To: Kris Kennaway <kris@obsecurity.org> Cc: current@FreeBSD.ORG Subject: Re: perl5.6.1 wrapper Message-ID: <200211082313.gA8NDgJC004268@grimreaper.grondar.org> In-Reply-To: <20021108215352.GA26821@rot13.obsecurity.org> ; from Kris Kennaway <kris@obsecurity.org> "Fri, 08 Nov 2002 13:53:53 PST." References: <20021108215352.GA26821@rot13.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211082313.gA8NDgJC004268>