Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2012 07:16:44 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: Lost /var/db/pkg
Message-ID:  <4FD8304C.7000004@FreeBSD.org>
In-Reply-To: <CAG%2BKJSJh7dQNg4cnHnu9O0u8_fmvWF0YuWQaeeVPxGrPSaDHnQ@mail.gmail.com>
References:  <CAG%2BKJSJh7dQNg4cnHnu9O0u8_fmvWF0YuWQaeeVPxGrPSaDHnQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig53EDC28D8CB950A2E9ED52AC
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 13/06/2012 02:03, William Orr wrote:
> I had a hard disk failure some time ago, and I ended up losing
> /var/db/pkg/ and everything under it (before you say I should've been
> backing it up, I know, I was actually doing an initial full when this
> happened). Is there a way I can restore it, or at least manually add
> entries I know for sure about?

Reinstall all the ports on your system?  Since you've lost /var/db/pkg,
you won't have a handy record of what the necessary packages are.  You
can get a long way by starting with ports you want directly (eg.
firefox) and reinstalling all of their dependencies.

It's unlikely to be completely accurate, and the system will probably
have odd little issues with normal ports maintenance going on.  Perhaps
the most effective procedure would be to wipe out the contents of
/usr/local and /compat/linux and just start again from scratch.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




--------------enig53EDC28D8CB950A2E9ED52AC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/YMFMACgkQ8Mjk52CukIzdawCghvd5gJnJlBaxlPHIf6uUexGv
PegAoI8IKqIMeJ3tgbeaUJ9/l4iJ/saI
=qHr4
-----END PGP SIGNATURE-----

--------------enig53EDC28D8CB950A2E9ED52AC--



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