Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 2002 16:32:48 -0300 (ART)
From:      Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
To:        Dave Chapman <dave.chapman@dsl.pipex.com>
Cc:        questions@freebsd.org
Subject:   Re: Ports system broken
Message-ID:  <20021013162505.T3949-100000@cactus.fi.uba.ar>
In-Reply-To: <20021013150207.2aca0a45.dave.chapman@dsl.pipex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021013162505.T3949-100000>