Date: Thu, 13 Feb 2003 03:59:56 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: The Anarcat <anarcat@anarcat.ath.cx> Cc: hackers@FreeBSD.org Subject: Re: what userland files are necessary for an installworld? Message-ID: <20030213015956.GD2066@gothmog.gr> In-Reply-To: <20030212202327.GH522@xtanbul> References: <20030212202327.GH522@xtanbul>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-02-12 15:23, The Anarcat <anarcat@anarcat.ath.cx> wrote: > Basically, I suspect I have some dead pre-5.x libs rotting in my > tree. I would like to cleanup /usr/lib and /usr/bin to get rid of > old binaries. Is the /usr/obj directory self-contained? Does it need > a lot of stuff outside of it? You can make sure that your /usr/lib directory is clean, by running the following pre-installworld: # cd /usr # mv lib lib.old # ldconfig -elf /usr/lib.old # mkdir lib Then installworld as usual, and if nothing breaks you can delete /usr/lib.old later. -- The /usr/bin problem is a bit more tricky, since you'll have to check for old files and make sure they can safely go away. A couple of days ago, I used the following at home: $ uname -v FreeBSD 5.0-CURRENT #13: Tue Feb 11 04:45:48 EET 2003 [...] $ /bin/ls -l /usr/bin/* | awk '{printf "%3s %2s\n",$6,$7}' | sort | uniq -c 399 Feb 11 $ If the small script above prints more than one date, then the files of the older date are probably stale, i.e. if the output is: $ /bin/ls -l /usr/bin/* | awk '{printf "%3s %2s\n",$6,$7}' | sort | uniq -c 399 Feb 11 7 Oct 9 You can check which files are the old ones: $ ls -l /usr/bin | grep 'Oct 9' -r-xr-xr-x 1 root wheel - 100229 Oct 9 15:45 a2p -r-xr-xr-x 1 root wheel - 36353 Oct 9 15:45 c2ph -r-xr-xr-x 1 root wheel - 64624 Oct 9 15:46 chflags -r-xr-xr-x 1 root wheel - 24804 Oct 9 15:46 gprof4 -r-xr-xr-x 1 root wheel - 100 Oct 9 15:45 joy -r-xr-xr-x 1 root wheel - 4528 Oct 9 15:46 key -r-xr-xr-x 1 root wheel - 8636 Oct 9 15:46 kzip In this case, the old files are stale Perl programs from my 4.X -> 5.X upgrade, after I completely and utterly hosed my -current installation at home :-) They were removed shortly after my Feb 11 installworld. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030213015956.GD2066>