Re: Where Is the List of Installed Packages?
On Jan 8, 2011, at 12:58 PM, Andrei Popescu wrote:
> On Sb, 08 ian 11, 18:42:53, David Sastre wrote:
>> On Sat, 08 Jan 2011 10:22:01 -0500, Hal Vaughan wrote:
>>> I can simply re-install Debian with no trouble, the only issue is that I
>>> don't have the up-to-date list of all the packages installed on the old
>>> PATA drive. I can, though, plug it in and read it as a data drive.
>>> So where on that drive can I find the list of installed packages?
>> You could also mount that PATA drive externally and chroot into it to
>> request that (or any other) info:
>> # dpkg -l > list.of.packages.txt
>> The result is a much smaller file:
>> # dpkg -l > list
> If you can/want to use dpkg better use --get-selections because the
> output can be fed to --set-selections ;)
Without doing a chroot (while I know the mobo on the old system crashed, I'm beginning to suspect drive/OS issues), I could use a few utils like grep and awk to change a list from /var/lib/dpkg/status if I needed to, couldn't I?