emacs 25.x
The emacs 25.1 release will have in-built support for handling different kinds of archives from within dired. Below is the relevant excerpt from the NEWS
file (C-h C-n
).
+++
*** The command `dired-do-compress' bound to `Z' now can compress
directories and decompress zip files.
+++
*** New command `dired-do-compress-to' bound to `c' can be used to
compress many marked files into a single named archive. The
compression command is determined from the new
`dired-compress-files-alist' variable.
dired-do-compress
| Z
Check out the dired-compress-file-suffixes
variable to get a list of supported compressed file formats. The correct program will be used to uncompress a file (or files) when using the Z
binding (dired-do-compress
).
While the above will uncompress a wide range of formats, it will always compress using gzip
.
dired-do-compress-to
| c
Check out the dired-compress-files-alist
variable to get a list of supported file formats that can be compressed to using the c
binding (dired-do-compress-to
).
As of emacs 25.1, it supports compressing using tar
+ (gzip
/bzip2
/xz
) or zip
.
Z
in Dired replace (not added another) file with it's*.gz
archive (not*.zip
).dired-atool
, or who takes the time to follow the link and study what it does, the question will be clearer, but you should clarify the question itself, IMHO.