Sometimes, you have to use ZIP archives, or worse, RAR archives (curse them!), with one significant annoyance: zip, unzip, rar and unrar use a rather uncommon command line convention, compared to the usual tar, cpio and pax.
This is where bsdtar and bsdcpio come handy: these two equivalent tools from FreeBSD do not directly implement any archive format, relying on libarchive to do that instead. That allows you to do thinks like:
% bsdtar -tf crap.rar % bsdtar -xf crap.rar % bsdtar --format zip -cf stuff.zip stuff
Too bad it does not have a -a
option to
automatically select the archive format as GNU tar
does.
4 comments
thursday 21 february 2013 à 13:56 suggestion joe said : #1
thursday 21 february 2013 à 18:02 Tanguy said : #2
friday 22 february 2013 à 00:38 laurentb said : #3
wednesday 06 march 2013 à 02:29 Axel said : #4