How to clean out old files after 'make world'?
Freddie Cash
fcash-ml at sd73.bc.ca
Tue Jul 20 12:56:47 PDT 2004
> At 10:23 PM +0300 7/20/04, Stas D.Myasnikov wrote:
>>... I had thought that install script removes all unneeded files,
>>but it don't. How can I clean out this old binaries, configs, etc?..
>>Is there any automatic way to do this?
> You can: make cleanworld
> which does a fairly decent job of getting rid of all the old files
> in your build area (e.g., in /usr/obj/usr/src).
That only cleans out the /usr/obj directory tree. It doesn't remove
any files from anywhere else in the system.
> However, I am not sure if you are asking for more than that.
He wants to install FreeBSD, edit make.conf and uncomment a bunch of
NO_* variables to prevent them from being built/install during a world
build, and wants to have a way to remove the existing files from /bin,
/sbin, /usr/bin, etc.
Check the How-To forum at http://www.bsdforums.org/forums/ One of the
members there posted a set of scripts that will parse the NO_*
variables in make.conf, and remove any and all files associated with
those subsystems from an installed system.
The end result is the same as building a custom release and
reinstalling using that release to only get the bits you want, but
without all the hassle of building a custom release. :)
--
Freddie Cash, CCNT CCLP Helpdesk / Network Support Tech.
School District 73 (250) 377-HELP [377-4357]
fcash-ml at sd73.bc.ca
More information about the freebsd-hackers
mailing list