@hackage zip2tar0.0

Convert ZIP to TAR archives

Convert ZIP to TAR archives with minimal memory footprint.

Usage:

zip2tar input.zip >output.tar
zip2tar input.zip | lzip >output.tar.lz

ZIP archives cannot be read in a purely sequential way, because the central file catalogue is stored at the end of the archive file. Thus we do not provide reading ZIP archives from Stdin.

Per default zip2tar stores files in the TAR archive in the same order as the ZIP archive in order to minimize seeking. However this means unsorted filenames. You can order with respect to filenames with the --sort-by-name option.

Per default zip2tar sets user and group ids to zero and names to empty strings, because we do not know what is available on the system where the TAR archive gets unpacked. You may set those values individually like in:

zip2tar --user-name janedoe --user-id 42 --group-name users --group-id 23 input.zip

zip2tar does not try to derive id from name or vice versa. If you want certain values you must set them explicitly. You may want to set the values to the settings of the current system like so:

zip2tar --user-name $USER --user-id $UID --group-name $(id -gn) --group-id $(id -g) input.zip