Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian dpkg (http://www.linux-archive.org/debian-dpkg/)
-   -   dpkg(1) and the "old" .deb format (http://www.linux-archive.org/debian-dpkg/647574-dpkg-1-old-deb-format.html)

Ivan Shmakov 03-22-2012 09:04 AM

dpkg(1) and the "old" .deb format
 
>>>>> 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


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 861uolvtmu.fsf_-_@gray.siamics.net">http://lists.debian.org/861uolvtmu.fsf_-_@gray.siamics.net

Guillem Jover 03-22-2012 01:21 PM

dpkg(1) and the "old" .deb format
 
On Thu, 2012-03-22 at 17:04:41 +0700, Ivan Shmakov wrote:
> >>>>> Joey Hess <joeyh@debian.org> writes:
> > [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
> $

Nicely spot, I'm fixing this for my next push. It's anyway a part of
the codebase I had already on my TODO to fix.

thanks,
guillem


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120322142124.GA24957@gaara.hadrons.org">http://lists.debian.org/20120322142124.GA24957@gaara.hadrons.org


All times are GMT. The time now is 06:59 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.