On Fri, Apr 28, 2006 at 10:39:24AM +0300, Alexander Belikov wrote: > Is there a way to remove all old binaries? It's not a problem for me > to write a short perl script to remove them. Is there any implemented > solution?
You can use the scripts used by the validation steps mentioned in release(8) to get a list of files that don't belong to a release. For example, to check the base system (excluding X11): # cd /usr/src/distrib/sets # DESTDIR=/ sh checkflist > ~/foo # vi ~/foo At this point, *carefully* review the list (which is a diff(1) output) and remove everything you do *not* want to delete. After this, you can cleanup with xargs(1) and rm(1). For X11, the procedure is similar, but slightly different. Read the makefile and the scripts involved. And take into account that there may be installed packages (typically under /usr/local) that are linked against older shared libraries, so you will have to update those packages (and any additional local software). Better do this *before* deleting anything. Ciao, Kili