From owner-freebsd-questions Sun Oct 13 15:33:48 2002 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 54C8E37B401 for ; Sun, 13 Oct 2002 15:33:46 -0700 (PDT) Received: from nic.upatras.gr (nic.upatras.gr [150.140.129.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 162B143E3B for ; Sun, 13 Oct 2002 15:33:45 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 18384 invoked from network); 13 Oct 2002 22:26:42 -0000 Received: from upnet-dialinpool-30.upnet.gr (HELO hades.hell.gr) (@150.140.128.224) by nic.upatras.gr with SMTP; 13 Oct 2002 22:26:42 -0000 Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.6/8.12.6) with ESMTP id g9DMXtaW026856; Mon, 14 Oct 2002 01:33:55 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by hades.hell.gr (8.12.6/8.12.6/Submit) id g9DMXsrj026855; Mon, 14 Oct 2002 01:33:54 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 14 Oct 2002 01:33:53 +0300 From: Giorgos Keramidas To: Dave Chapman Cc: questions@FreeBSD.ORG Subject: Re: Ports system broken Message-ID: <20021013223353.GB26225@hades.hell.gr> References: <20021013150207.2aca0a45.dave.chapman@dsl.pipex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021013150207.2aca0a45.dave.chapman@dsl.pipex.com> X-PGP-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-10-13 15:02, Dave Chapman wrote: > I've managed to completely screw up my ports collection, to the > extent that I can't install anything now (don't want to get into how > I achieved this, too painful/embarassing :-)) Please, try to set your mailer up to wrap lines in a reasonable length; anything between 70 and 80 characters would be fine. > So, what I would like to know is: can I get my system back to a > state as if it had never had any ports installed on it at all, so I > can then put a fresh copy of the ports tree on it and start over > again? Yes, of course. > I'm thinking the procedure may go something like > - remove /usr/local Then run mtree with /etc/mtree/BSD.local.dist as the template file, to recreate a clean, empty /usr/local hierarchy: # mtree -pU < /etc/mtree/BSD.local.dist > - make installworld to replace anything in /usr/local that wasn't > put there by ports installworld should not and will not touch /usr/local > - remove /usr/X11R6 (since X is part of the ports?) That will also "remove" any X11-dependent ports you might have installed, but leave traces behind in /var/db/pkg/*. > - remove the package database under /var/db This will remove the traces mentioned above. You should be done now. > Does this sound like it may work, or have I overlooked some > glaringly obvious flaw in my plan? No. At least, nothing I could easily notice. -- keramida@FreeBSD.org FreeBSD: The Power to Serve FreeBSD 5.0-CURRENT #12: Thu Oct 10 21:08:38 EEST 2002 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message