Re: [Hampshire] Installed packages list - Debian

トップ ページ

このメッセージに返信
著者: Alex Phillips
日付:  
To: Hampshire LUG Discussion List
題目: Re: [Hampshire] Installed packages list - Debian
On 9/20/07, Simon Capstick <simon@???> wrote:
> 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
>
>



Thanks Hugo that worked.

Simon, I'd tried chrooting, but the original server was an ARM device,
and the server with the restored files on wasn't so it didn't work.

Thanks,

Alex.