From owner-freebsd-questions@FreeBSD.ORG Sat Oct 2 19:02:17 2004 Return-Path: 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 9E03A16A4EB for ; Sat, 2 Oct 2004 19:02:17 +0000 (GMT) Received: from smtp.owt.com (smtp.owt.com [204.118.6.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 385EE43D31 for ; Sat, 2 Oct 2004 19:02:17 +0000 (GMT) (envelope-from kstewart@owt.com) Received: from [207.41.94.233] (owt-207-41-94-233.owt.com [207.41.94.233]) by smtp.owt.com (8.12.8/8.12.8) with ESMTP id i92J15kG017873; Sat, 2 Oct 2004 12:01:06 -0700 From: kent To: freebsd-questions@freebsd.org Date: Sat, 2 Oct 2004 12:02:05 -0700 User-Agent: KMail/1.7 References: <20041002184908.GB564@kirk.dlee.org> In-Reply-To: <20041002184908.GB564@kirk.dlee.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200410021202.05949.kstewart@owt.com> Subject: Re: Is there a way to clean up the ports database without a lot of manual intervention? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2004 19:02:17 -0000 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