Re: way to get selections _not_ in /var/lib/dpkg/*?
Quoting Andrew Sullivan (sullivana@bpl.on.ca):
>
> Yes, but it's in a big file with a lot of extra data (whereas the
> output from --get-selections is just lines indicating package and
> state). I know that I can just pull the relevant bits with some
> regex work, but I wondered if there was a way to make dpkg read its
> data from some file other than the system's /var/lib/dpkg/status
> (assuming that's the file dpkg is using to get its data; I always
> assumed so).
Work? It takes two minutes to come up with
grep -B 1 "Status: install ok installed" /var/lib/dpkg/status |
grep Package | cut -d \ -f 2
Is that the sort of thing you want?
Cheers,
--
Email: d.wright@open.ac.uk Tel: +44 1908 653 739 Fax: +44 1908 655 151
Snail: David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer: These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.
Reply to: