From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 20 19:56:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AC9116A4D0 for ; Tue, 20 Jul 2004 19:56:47 +0000 (GMT) Received: from mailtest.sd73.bc.ca (mailtest.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22A1143D39 for ; Tue, 20 Jul 2004 19:56:47 +0000 (GMT) (envelope-from fcash-ml@sd73.bc.ca) Received: from localhost (localhost [127.0.0.1]) by mailtest.sd73.bc.ca (Postfix) with ESMTP id BF54D25B65 for ; Tue, 20 Jul 2004 12:56:45 -0700 (PDT) Received: from mailtest.sd73.bc.ca ([127.0.0.1]) by localhost (mailtest.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31649-03 for ; Tue, 20 Jul 2004 12:56:45 -0700 (PDT) Received: by mailtest.sd73.bc.ca (Postfix, from userid 80) id 68F5C25B5F; Tue, 20 Jul 2004 12:56:45 -0700 (PDT) Received: from 192.168.0.85 (SquirrelMail authenticated user fcash); by mailtest.sd73.bc.ca with HTTP; Tue, 20 Jul 2004 12:56:45 -0700 (PDT) Message-ID: <1784.192.168.0.85.1090353405.squirrel@192.168.0.85> In-Reply-To: References: Date: Tue, 20 Jul 2004 12:56:45 -0700 (PDT) From: "Freddie Cash" To: hackers@freebsd.org User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at sd73.bc.ca Subject: Re: How to clean out old files after 'make world'? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fcash-ml@sd73.bc.ca List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2004 19:56:47 -0000 > 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