On Thu, 2004-01-08 at 02:40, Martin Costabel wrote: > (in particular, you cannot reinstall dpkg when > dpkg is not working).
You most certainly can. .deb's are "ar" files. You can use ar x to
unpack:
[EMAIL PROTECTED]:tmp$ mkdir /tmp/foo
[EMAIL PROTECTED]:tmp$ cd /tmp/foo
[EMAIL PROTECTED]:foo$ ar x /var/cache/apt/archives/apt_0.6.9_i386.deb
[EMAIL PROTECTED]:foo$ ls
control.tar.gz data.tar.gz debian-binary
At this point, you have tar files.
[EMAIL PROTECTED]:foo$ tar tzf data.tar.gz | head
./
./usr/
./usr/bin/
./usr/bin/apt-cache
./usr/bin/apt-cdrom
./usr/bin/apt-config
./usr/bin/apt-get
./usr/bin/apt-key
./usr/lib/
./usr/lib/apt/
So, you can certainly unpack that into / thereby replacing it.
OTOH, if dpkg-deb is broken, then you should still have, e.g.,
debian/tmp/ or whatever fink builds into, and you can copy that into /
signature.asc
Description: This is a digitally signed message part
