Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Oct 2004 12:02:05 -0700
From:      kent <kstewart@owt.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Is there a way to clean up the ports database without a lot of manual intervention?
Message-ID:  <200410021202.05949.kstewart@owt.com>
In-Reply-To: <20041002184908.GB564@kirk.dlee.org>
References:  <20041002184908.GB564@kirk.dlee.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 02 October 2004 11:49 am, Doug Lee wrote:
> I have reason to believe I've made some mistakes trying to run pkgdb
> -F to clean up a couple ports trees on different FreeBSD systems I
> run.  I confess I've never fully understood how to answer some of the
> prompts during that process.  Also though, my ports tree was formed
> before portupgrade/portinstall were available, so I have some ports
> that were installed via a simple "make install," some by
> portinstall/portupgrade, some I installed first with "make install"
> and then tried to upgrade with portupgrade, etc.

I like the information provided by portsearch. You can find it 
in /usr/ports/Tools/scripts. I created an alias called search, which is 
equated to 'portsearch -n $1'. It is handy when you are told to run "pkgdb 
-F" because you can see what the index thinks the port should be linked to 
and not the strange link you are provided with as a choice at times. I only 
see the strange choice when the port it needs is not installed. The easy way 
out for me is to install the missing port manually.

>
> Is there a process I can run that will make the database consistent
> again so I can install/upgrade ports without error?  I don't care if
> it takes two days to run. :-)  I also know I may be asking the
> impossible here, but I figure it doesn't hurt to try.

I think that "pkgdb -fu" is going to be the only automated recovery.

Kent

>
> Please email responses directly to me so they don't get lost in
> traffic.

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



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