Is there a way to clean up the ports database without a lot of
manual intervention?
kent
kstewart at owt.com
Sat Oct 2 12:02:17 PDT 2004
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
More information about the freebsd-questions
mailing list