Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2004 12:56:45 -0700 (PDT)
From:      "Freddie Cash" <fcash-ml@sd73.bc.ca>
To:        hackers@freebsd.org
Subject:   Re: How to clean out old files after 'make world'?
Message-ID:  <1784.192.168.0.85.1090353405.squirrel@192.168.0.85>
In-Reply-To: <p0611041dbd2326373ea5@[128.113.24.47]>
References:  <web-108250817@tut.by> <p0611041dbd2326373ea5@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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@sd73.bc.ca



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1784.192.168.0.85.1090353405.squirrel>