Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2004 17:48:24 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Brian McCann <bjm1287@rit.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Problem with pkgdb
Message-ID:  <20040323174824.GD973@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <000901c410f9$4662d5c0$6500a8c0@garfield>
References:  <000901c410f9$4662d5c0$6500a8c0@garfield>

next in thread | previous in thread | raw e-mail | index | archive | help

--MAH+hnPXVZWQ5cD/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 23, 2004 at 12:07:06PM -0500, Brian McCann wrote:
> I've got an urgent problem that needs fixing...and i'm stuck.  One of
> the admins on one of our servers decided to delete the /var/db/pkg
> directory.  I tried rebuilding it using pkfdb -Fu, and it returned
> nothing.  Is there a way to recover from this...aside from backups?

pkgdb -Fu scans the contents of /var/db/pkg to build its package
database.

Either use your backups, or re-install all of the ports you've got on
that machine.  However, that's harder to do than it sounds, as
/var/db/pkg is what would be consulted to see exactly what ports
are installed on the machine.

On the plus side, losing /var/db/pkg doesn't affect the day to day
operation of the system, so you can repair this at your leisure.
Perhaps delegate the job of working out what ports were installed on
that box to the admin who broke it, as an object lesson in the
consequences of being too quick with the rm(1) command...

	Cheers,

	Matthew

--=20
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

--MAH+hnPXVZWQ5cD/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAYHhodtESqEQa7a0RAq6mAJ93f2mnjyR4icCT9Z4EZCXjKgOOQgCgi5xl
MiG6HL1dk2ExZNF3SSqUHjw=
=AQNI
-----END PGP SIGNATURE-----

--MAH+hnPXVZWQ5cD/--



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