dpkg(1) and the "old" .deb format
- To: debian-dpkg@lists.debian.org
- Subject: dpkg(1) and the "old" .deb format
- From: Ivan Shmakov <oneingray@gmail.com>
- Date: Thu, 22 Mar 2012 17:04:41 +0700
- Message-id: <861uolvtmu.fsf_-_@gray.siamics.net>
- References: <20080412002845.GA13435@kodama.kitenet.net> <20080412074757.GA26274@ouaza.com> <20080412164741.GA29015@kodama.kitenet.net> <20080412171850.GA11650@ouaza.com> <20080412205443.GA488@kodama.kitenet.net>
>>>>> Joey Hess <joeyh@debian.org> writes:
[…]
> Neither gzip nor tar files include an embedded version number and yet
> the tar format has several times been extended without breaking
> backwards compatability. The family of zip/compress formats is a
> mess and yet current gzip can extract every zip-like thing ever
> created. In a sense that's what "file format" means today -- even if
> the format changes, old versions are still supported[1].
[…]
> [1] Doesn't dpkg even support all the old variants of the deb format?
Surprisingly, it depends on the locale! Consider, e. g.:
$ LC_ALL=C dpkg -c \
archive.debian.org/debian/dists/Debian-0.93R6/binary/base/dpkg-1.0.0.deb
drwxr-xr-x root/root 0 1995-10-01 18:18 ./
drwxr-xr-x root/root 0 1995-10-01 18:18 usr/
drwxr-xr-x root/root 0 1995-10-01 18:18 usr/doc/
drwxr-xr-x root/root 0 1995-10-01 18:18 usr/doc/copyright/
-rw-r--r-- root/root 1540 1995-10-01 18:18 usr/doc/copyright/dpkg
…
$ LC_ALL=de_DE.UTF-8 dpkg -c \
archive.debian.org/debian/dists/Debian-0.93R6/binary/base/dpkg-1.0.0.deb
dpkg-deb: »archive.debian.org/debian/dists/Debian-0.93R6/binary/base/dpkg-1.0.0.deb« ist kein Archiv im Debian-Format
$
That being said, it wasn't all that hard to extract the contents
using just the plain old Shell utilities [1].
[1] news:86sjh2zodl.fsf@gray.siamics.net
http://groups.google.com/group/alt.os.linux.debian/msg/2cd247ad90b2f18f
--
FSF associate member #7257
Reply to: