Re: way to get selections _not_ in /var/lib/dpkg/*?

2000-12-07 Thread Andrew Sullivan
On Wed, Dec 06, 2000 at 10:57:24AM -0800, Joey Hess wrote: dpkg --get-selections --root=/whever-you-have-mounted-your-dead-system may work. This worked beautifully, once I constructed a fake path under a temporary directory. Thanks for the suggestions, all. A -- Andrew Sullivan

way to get selections _not_ in /var/lib/dpkg/*?

2000-12-06 Thread Andrew Sullivan
Hi, I know that you can get a complete list of things installed on a system with dpkg --get-selections, and can set those to be installed on another system with dpkg --set-selections. Is there, however, a way to extract from an _old_ /var/lib/dpkg/ tree the same output as one would get on a

RE: way to get selections _not_ in /var/lib/dpkg/*?

2000-12-06 Thread Sean 'Shaleh' Perry
I have a system whose root partition died part way through an incremental backup cycle. I'm afraid the full increment was spaced too far, because I'd made a number of changes to the system in the few days before the hard drive died (yes, I know, I should have done a full backup then. I

Re: way to get selections _not_ in /var/lib/dpkg/*?

2000-12-06 Thread Andrew Sullivan
On Wed, Dec 06, 2000 at 10:32:02AM -0800, Sean 'Shaleh' Perry wrote: let's see . /var/lib/dpkg/status. Every package marked 'Status: install ok installed' is installed. Yes, but it's in a big file with a lot of extra data (whereas the output from --get-selections is just lines

Re: way to get selections _not_ in /var/lib/dpkg/*?

2000-12-06 Thread Sean 'Shaleh' Perry
On 06-Dec-2000 Andrew Sullivan wrote: On Wed, Dec 06, 2000 at 10:32:02AM -0800, Sean 'Shaleh' Perry wrote: let's see . /var/lib/dpkg/status. Every package marked 'Status: install ok installed' is installed. Yes, but it's in a big file with a lot of extra data (whereas the output

Re: way to get selections _not_ in /var/lib/dpkg/*?

2000-12-06 Thread Joey Hess
Andrew Sullivan wrote: 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

Re: way to get selections _not_ in /var/lib/dpkg/*?

2000-12-06 Thread David Wright
Quoting Andrew Sullivan ([EMAIL PROTECTED]): 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

Re: way to get selections _not_ in /var/lib/dpkg/*?

2000-12-06 Thread Andrew Sullivan
On Wed, Dec 06, 2000 at 07:02:34PM +, David Wright wrote: 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? Well, not as easy as that, but that's also what I came