2012-06-01 03:06:24 +00:00
|
|
|
Archive
|
|
|
|
=======
|
|
|
|
|
2015-10-05 22:47:41 +00:00
|
|
|
Provides functions to create, list, and extract archives.
|
2012-06-01 03:06:24 +00:00
|
|
|
|
|
|
|
Functions
|
|
|
|
---------
|
|
|
|
|
2015-10-05 22:47:41 +00:00
|
|
|
- `archive` creates an archive based on the provided archive name.
|
2013-05-25 18:39:51 +00:00
|
|
|
- `lsarchive` lists the contents of one or more archives.
|
|
|
|
- `unarchive` extracts the contents of one or more archives.
|
2012-06-01 03:06:24 +00:00
|
|
|
|
|
|
|
Supported Formats
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
The following archive formats are supported when the required utilities are
|
|
|
|
installed:
|
|
|
|
|
2015-10-05 22:47:41 +00:00
|
|
|
- *.tar.gz*, *.tgz* require `tar` (optionally `pigz`).
|
|
|
|
- *.tar.bz2*, *.tbz* require `tar` (optionally `pbzip2`).
|
2012-06-01 03:06:24 +00:00
|
|
|
- *.tar.xz*, *.txz* require `tar` with *xz* support.
|
|
|
|
- *.tar.zma*, *.tlz* require `tar` with *lzma* support.
|
|
|
|
- *.tar* requires `tar`.
|
|
|
|
- *.gz* requires `gunzip`.
|
|
|
|
- *.bz2* requires `bunzip2`.
|
|
|
|
- *.xz* requires `unxz`.
|
|
|
|
- *.lzma* requires `unlzma`.
|
|
|
|
- *.Z* requires `uncompress`.
|
2017-04-18 05:04:28 +00:00
|
|
|
- *.zip*, *.jar* requires `unzip`.
|
2017-09-18 23:27:31 +00:00
|
|
|
- *.rar* requires `rar` (needed for `archive` support), `unrar` or `lsar` and `unar`.
|
2012-06-01 03:06:24 +00:00
|
|
|
- *.7z* requires `7za`.
|
|
|
|
- *.deb* requires `ar`, `tar`.
|
|
|
|
|
2018-10-12 15:52:24 +00:00
|
|
|
Additionally, if `pigz` and/or `pbzip2` are installed, `archive` will use them
|
|
|
|
over their traditional counterparts, `gzip` and `bzip2` respectively, to take
|
|
|
|
full advantage of all available CPU cores for compression.
|
2015-10-05 22:47:41 +00:00
|
|
|
|
2017-11-10 18:38:15 +00:00
|
|
|
Alternatives
|
|
|
|
------------
|
|
|
|
|
|
|
|
Specifically on macOS, [The Unarchiver][1] provides a similar command line tool
|
|
|
|
which doesn't depend on a number of other programs being installed.
|
|
|
|
|
2012-06-01 03:06:24 +00:00
|
|
|
Authors
|
|
|
|
-------
|
|
|
|
|
|
|
|
*The authors of this module should be contacted via the [issue tracker][1].*
|
|
|
|
|
|
|
|
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
2015-10-05 22:47:41 +00:00
|
|
|
- [Matt Hamilton](https://github.com/Eriner)
|
2012-06-01 03:06:24 +00:00
|
|
|
|
2017-11-10 18:38:15 +00:00
|
|
|
[1]: https://theunarchiver.com/command-line
|