Re: Recovering dpkg database

2001-04-23 Thread Ingo Saitz
MoiN On Sun, Apr 22, 2001 at 11:58:15AM -0500, Taral wrote: On Sat, Apr 21, 2001 at 10:49:20PM -0700, Joseph Carter wrote: From then on (sorry, I know of no other way) you will simply have to get a list of installed packages (dpkg --get-selections, you can use cut or sed and grep or

Re: Recovering dpkg database

2001-04-23 Thread Taral
On Mon, Apr 23, 2001 at 03:46:19PM +0200, Ingo Saitz wrote: apt-get clean apt-get -d install `dpkg --get-selections | awk '$2 == install { print $1 }'` dpkg -i /var/cache/apt/archives/*.deb Nope, this will only upgrade to new versions. You need to add the switch '--reinstall' to the

Re: Recovering dpkg database

2001-04-22 Thread Joseph Carter
On Sun, Apr 22, 2001 at 12:07:37AM +0200, Klaus Reimer wrote: My harddisk containing /var has crashed (and I am a fool without a backup). I was able to recover /var/lib/dpkg/status but all other files in /var/lib/dpkg except some files from /var/lib/dpkg/info are gone. Is there any way to

Re: Recovering dpkg database

2001-04-22 Thread Taral
On Sat, Apr 21, 2001 at 10:49:20PM -0700, Joseph Carter wrote: From then on (sorry, I know of no other way) you will simply have to get a list of installed packages (dpkg --get-selections, you can use cut or sed and grep or something to cut the list down to just the ones you want) and feed the