Re: [Hampshire] Installed packages list - Debian

Top Page
Author: Hugo Mills
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Installed packages list - Debian

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57dbb100.hantslug.org.uk.22805': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Thu Sep 20 12:08:04 2007 BST
gpg: using DSA key 20ACB3BE515C238D
gpg: Can't check signature: No public key
On Thu, Sep 20, 2007 at 12:03:01PM +0100, Alex Phillips wrote:
> Dear List,
>
> I have a small hardware problem with a debian system, the disk is
> dead, but I have a tar-file backup of the filesystems which I can
> restore. I want to extract from this the list of packages that were
> installed, something like dpkg -l, if the system was running.
>
> Does anyone know how I can point dpkg at the restored files ? or
> another way of doing this ?


grep ^Package: var/lib/dpkg/status

That file is, IIRC, the currently-installed-packages database.

Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
          --- ...  one ping(1) to rule them all, and in the ---          
                         darkness bind(2) them.