updating ports and pkgdb

Matthew Seaman m.seaman at infracaninophile.co.uk
Wed Apr 14 01:05:03 PDT 2004

On Wed, Apr 14, 2004 at 10:42:57AM +0930, bastill at adam.com.au wrote:

> Unfortunately, pkgdb -u does NOT rebuild from scratch, but simply refreshes
> itself from the directories in /var/pkg/db.
> Is there a way I could delete all those directories and make pkgdb go look and
> rebuild the db/directories from what it finds?

Errr... pkgdb builds a summary of the package data found in
/var/pkg/db.  That is the authoritative source of information on what
packages are installed on your system, which files belong to those
packages, and the dependencies between those packages.

If your complaint is that the package database pkgdb creates needs to
be rebuilt from nothing, then you can try:

    # pkgdb -fu

but that is very rarely needed, unless pkgdb.db is actually corrupted.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040414/0025c6dc/attachment.bin

More information about the freebsd-questions mailing list