Hugo Mills wrote:
> 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.
>
>
Failing that, restore the files and chroot into the parent directory.
Then use dpkg.
Simon