[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files
From: |
Achim Gratz |
Subject: |
Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files |
Date: |
Wed, 14 Oct 2015 20:51:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Eli Zaretskii writes:
>> From: Oleh Krehel
>> This will be harder to fix, since I've only ever dealt with .tar.gz
>> archives (and .zip sometimes). Could someone provide the relative
>> extraction commands for .tar.bz2, .tar.xz, and .tar?
>
> For .tar.bz2, uncompress with bunzip2 to get .tar, for .tar.xz,
> uncompress with unxz to get .tar. Is that what you wanted?
This is what a reasonably recent GNU tar offers:
--8<---------------cut here---------------start------------->8---
Compression options:
-a, --auto-compress use archive suffix to determine the compression
program
-I, --use-compress-program=PROG
filter through PROG (must accept -d)
-j, --bzip2 filter the archive through bzip2
-J, --xz filter the archive through xz
--lzip filter the archive through lzip
--lzma filter the archive through lzma
--lzop filter the archive through xz
--no-auto-compress do not use archive suffix to determine the
compression program
-z, --gzip, --gunzip, --ungzip filter the archive through gzip
-Z, --compress, --uncompress filter the archive through compress
--8<---------------cut here---------------end--------------->8---
As long as the suffix is recognized by tar, the selection of the
uncompress flavor is automatic even without "-a" and you need just "-a"
for the creation of archives (which is nice since I never remember if I
need -j or -J). But as Paul said, different (and mostly older) tar
implementations often do not support those operations or in a different
way.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
- Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files, Glenn Morris, 2015/10/13
- Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files, Glenn Morris, 2015/10/15
- Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files, Eli Zaretskii, 2015/10/15
- Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files, Oleh Krehel, 2015/10/16
- Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files, Eli Zaretskii, 2015/10/16
- Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files, Oleh Krehel, 2015/10/16
- Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files, Eli Zaretskii, 2015/10/16