From owner-freebsd-newbies Thu Jan 10 1: 0:12 2002 Delivered-To: freebsd-newbies@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163]) by hub.freebsd.org (Postfix) with ESMTP id 2E86437B400 for ; Thu, 10 Jan 2002 01:00:04 -0800 (PST) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.9.3/8.9.1) with ESMTP id AAA28258; Thu, 10 Jan 2002 00:58:11 -0800 (PST) Date: Thu, 10 Jan 2002 00:58:11 -0800 (PST) From: Annelise Anderson To: daniel.tang@chronicle.com Cc: newbies@FreeBSD.ORG Subject: Re: From cleaning ports to rebuilding ports In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 8 Jan 2002, Daniel Tang wrote: > > Hello, > > I used portupgrade to upgrade all my ports. Seemed to work like a charm. > But then, somehow my package database went bad. I did make a > backup of /var/db/pkg, but after installing some newer ports, the package > database incorrectly lists the versions of the ports. > > Is there a way to rebuild the package database from scratch? > > > BTW, I followed the instructions per: > > http://www.onlamp.com/pub/a/bsd/2001/11/29/Big_Scary_Daemons.html > > > --D > > portupgrade also comes with pkgdb, which you run with the -F switch (I think pkgdb is listed on the portupgrade man page and also has its own manual page). portupgrade -nav (don't do anything except, verbosely, list what would be done) invites you to use pkgdb to update the database before it is run. Annelise -- Annelise Anderson Author of: FreeBSD: An Open-Source Operating System for Your PC Available from: BSDmall.com and amazon.com Book Website: http://www.bittreepress.com/FreeBSD/introbook/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message