Date: Mon, 14 Oct 2002 01:33:53 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Dave Chapman <dave.chapman@dsl.pipex.com> Cc: questions@FreeBSD.ORG Subject: Re: Ports system broken Message-ID: <20021013223353.GB26225@hades.hell.gr> In-Reply-To: <20021013150207.2aca0a45.dave.chapman@dsl.pipex.com> References: <20021013150207.2aca0a45.dave.chapman@dsl.pipex.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-10-13 15:02, Dave Chapman <dave.chapman@dsl.pipex.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021013223353.GB26225>