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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to