[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Recovering dpkg database



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 invocation of apt-get. I also suggest
> that you let apt-get do the install ordering instead of doing
> 'dpkg -i *.deb'. Otherwise dpkg probably will fail on
> unconfigured predependencies...

Oh, that works too. I had used apt-get -d to download and dpkg -i to
install (dpkg will reinstall packages with plain -i).

-- 
Taral <taral@taral.net>
Please use PGP/GPG encryption to send me mail.
"Any technology, no matter how primitive, is magic to those who don't
understand it." -- Florence Ambrose

Attachment: pgp2VajpJ2_1c.pgp
Description: PGP signature


Reply to: