From owner-freebsd-questions@FreeBSD.ORG Wed Oct 26 16:25:01 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E5FD16A41F for ; Wed, 26 Oct 2005 16:25:01 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC89243D49 for ; Wed, 26 Oct 2005 16:24:59 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j9QGOv4t011437; Wed, 26 Oct 2005 19:24:57 +0300 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id j9QGOnUx004422; Wed, 26 Oct 2005 19:24:49 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id j9QGOnY0004421; Wed, 26 Oct 2005 19:24:49 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 26 Oct 2005 19:24:49 +0300 From: Giorgos Keramidas To: N Deepak Message-ID: <20051026162449.GA4323@flame.pc> References: <20051026152900.GA12635@symonds.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051026152900.GA12635@symonds.net> Cc: freebsd-questions@freebsd.org Subject: Re: remove distributions before installworld? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2005 16:25:01 -0000 On 2005-10-26 08:29, N Deepak wrote: > Hi, > > I have installed FreeBSD 5.3-RELEASE through CD-ROM. > > I used cvsup to sync my /usr/src directory to the latest STABLE tree. > > The problem is that I had installed some distributions that I no > longer want to keep. Also, I don't need lpr (this can be disabled > through make.conf). So, is there a way to remove these files, before > I do 'make installworld'? > > I did not find any information on this in the handbook. The ``FreeBSD From Scratch'' article has some nice tips about doing "clean" installations, which you may find interesting: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/fbsd-from-scratch/ I don't use the scripts from that article, but you don't *HAVE* to use them either. The last time I did this, I used a second partition as a 'temporary boot area'. I had the following original partitions: / /var /usr /home Doing all my builds under /home/build as the 'build' user allows me to boot from another disk, mount my original /home and install a new snapshot with the following rough plan: * Mount a spare partition with at least 200 MB of space under /mnt/new * Install everything with "make DESTDIR=/mnt/new installworld" * Backup user passwords and a few minor /etc configuration options that I wanted to keep in /mnt/new/etc.tar.gz (i.e. user passwords, network setup files, etc). * Boot from the /mnt/new partition * Restore my /etc files * Wipe the old /, /var and /usr partitions with newfs * Remount the 'original' /, /var and /usr partitions under /mnt/root * Remount my original /home partition under /home (of the new disk) * Install everything again in their final location with: # cd /home/build/src # env MAKEOBJDIRPREFIX=/home/build/obj \ make DESTDIR=/mnt/root installworld * Run mergemaster to merge the new configuration files in /mnt/root with: # env MAKEOBJDIRPREFIX=/home/build/obj \ mergemaster -m /home/build/src/etc -D /mnt/root * Set up the boot loader to boot from the 'original' root That's _not_ a detailed guide and I may have forgotten some of the details, since I'm typing this away from my notebook at home. It may help you make your own plan though... Regards, Giorgos