From owner-freebsd-questions Sun Oct 13 12:35: 2 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 7C50A37B401 for ; Sun, 13 Oct 2002 12:35:00 -0700 (PDT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FF9B43E91 for ; Sun, 13 Oct 2002 12:34:59 -0700 (PDT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.12.3/8.12.3) with ESMTP id g9DJWmdO064659; Sun, 13 Oct 2002 16:32:48 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Sun, 13 Oct 2002 16:32:48 -0300 (ART) From: Fernando Gleiser To: Dave Chapman Cc: questions@freebsd.org Subject: Re: Ports system broken In-Reply-To: <20021013150207.2aca0a45.dave.chapman@dsl.pipex.com> Message-ID: <20021013162505.T3949-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-3.4 required=5.0 tests=IN_REP_TO version=2.31 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 Sun, 13 Oct 2002, Dave Chapman wrote: > Hi, > > 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 :-)) Instead of removing /usr/local by hand, did you try to pkg_delete the ports? If you didn't screw /var/db, you can get the list of the installed ports First, do a 'ls /var/db/pkg' to get a list of the installed packages then, you can deinstall them whit the following script: #!/bin/sh for var in `ls /var/db/pkg` do pkg_delete -f $var done Hope this helps. Fer > > Does this sound like it may work, or have I overlooked some glaringly > obvious flaw in my plan? It would be really good to find a solution other > than a complete reinstall, as the base system (cvsup'd to 4.7 a couple of > days ago) is working really well... > > Regards, > Dave > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message