Didier Wiroth <didier.wir...@mesr.etat.lu> wrote: > I've been updating my computer from binaries over the years, I'm mostly > running current. > What is the best way to clean/delete old (zombie unused) binary, > libraries /etc files ...?
Just yesterday I posted a script here for this purpose (delete-old), but it requires a checked out source tree and repository access, so I guess that's more for people who update some machines from source. What I usually do from time to time when running upgrade from the install media is that I shell out before the sets are extracted and just remove the system directories: # cd /mnt # rm -rf /bin /sbin # cd /mnt/usr # rm -rf X11R6 bin games include lib libdata libexec sbin share (If /usr is conveniently set up as a partition of its own, I just newfs it.) Skip removing usr/lib if you have lots of packages installed and pkg_add -u needs to still run old executables on deinstall. There's no quick way to clean up /etc and /dev. Also, if you don't compile things on a box and you're not desperately short of space, why even bother? -- Christian "naddy" Weisgerber na...@mips.inka.de