[vox-tech] recovering /usr with dpkg

Mike Simons vox-tech@lists.lugod.org
Mon, 02 Jun 2003 01:37:22 -0400


--7lMq7vMTJT4tNk0a
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jun 01, 2003 at 12:47:53PM -0700, Henry House wrote:
> On Sun, Jun 01, 2003 at 12:19:58PM -0700, Nick Donnelly wrote:
> > I still have an intact /var/lib/dpkg/status.
> > What should my next command be?

apt-get install --reinstall=20
  `dpkg --get-selections | awk '/[^e]install$/ { print $1 }'`

  That should do it... since you say you have status the stuff inside the
back quotes will get a complete list of everything currently marked as
installed, and have apt-get reinstall them.

  Let me know if that doesn't work...


> * I believe Mike has a post in the archives somewhere about the excellent
>   trick of recovering a missing /var/lib/dpkg by exploiting Debian's
>   requirement that all packages must have an entry in /usr/share/doc.

  I think there have been a few items like this on the list, but most
people have blown away /var/lib/dpkg ... so the step about wouldn't=20
have been suggested.  :)

--=20
GPG key: http://simons-clan.com/~msimons/gpg/msimons.asc
Fingerprint: 524D A726 77CB 62C9 4D56  8109 E10C 249F B7FA ACBE

--7lMq7vMTJT4tNk0a
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+2uKS4Qwkn7f6rL4RAv3FAJ44DVydyG8Aq4LYU9dDF/7OU1zImQCeNDOV
W0aeXl70Rqi9/FnvzadYMk4=
=1owv
-----END PGP SIGNATURE-----

--7lMq7vMTJT4tNk0a--