How to clean out old files after 'make world'?

Colin Percival colin.percival at wadham.ox.ac.uk
Fri Jul 30 02:56:04 PDT 2004


At 02:17 30/07/2004, Max Laier wrote:
>I am wondering, would it be possible to (automatically) create pkg-plist info 
>for the NO_* targets in make.conf? We could put that into the ports-tree 
>somewhere and if you'd like to remove something completely you can install 
>the dummy port & pkg-plist and use pkg_delete to clean up.
>
>It seems to me that it might be possible to add some kind of Makefile hint 
>variables (i.e. define a variable in Makefiles/targets that depend on NO_*) 
>that'd help to generate filelists for the NO_* targets. If this is the case 
>it should be possible to place pkg descriptions into /var/db/pkg during the 
>installworld pass. This would also make it easy to get rid of things after a 
>CDROM install.

In March, I posted to freebsd-current (subject: Nuking parts of the world)
offering a patch which makes it possible to remove some subsystems:

http://docs.freebsd.org/cgi/mid.cgi?6.0.1.1.1.20040316023919.039fa5f0

Colin Percival




More information about the freebsd-hackers mailing list