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

Re: deb==ar compatability



Ben Collins wrote:

> GNU ar can unpack .debs (you can test that easily), and dpkg can handle
> .debs created with ar. You can also test this yourself by doing:
> 
>         # ar xv foo.deb
>         # ar rc foo-new.deb debian-binary control.tar.gz data.tar.gz
>         # dpkg -i foo-new.deb
> 

If you look at say, acct_6.3.5-17.deb with vi you see

line 1: !<arch>
line 2: debian-binary   945301435   0 ....rest of archive

if you then do 

# ar x acct_6.3.5-17.deb
# ar rc acct-new_6.3.5-17.deb debian-binary control.tar.gz data.tar.gz

Then open acct-new_6.3.5-17.deb in vi 

line 1: !<arch>
line 2: debian-binary/  959706793   0  etc.
                     ^
GNU ar 2.9.5 seems to use / to mark end of filename whereas dpkg doesnt.

acct-new still unpacks with dpkg no problem, so it doesnt matter, i just
wondered why it was different.


Glenn



Reply to: