Generic file unpacker for Linux/BSD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ben de Graaff 0bd5037b93 Fix --force-directory 3 years ago
COPYING Initial commit 8 years ago
README.rst Code cleanup; fix broken unpacking of non-archives 3 years ago
TODO Support xz/lmza/lzo/gz/bz2 files 5 years ago
setup.py Code cleanup; fix broken unpacking of non-archives 3 years ago
unpack Fix --force-directory 3 years ago

README.rst

Unpack
======

Unpack is a generic archive unpacking tool. Based on the file paths in the
archive, it attempts to find an acceptable top level directory to extract to.

This script primarily exists because not everyone sticks to the convention of
creating archives with a base folder, and the myriad of compression tools lack
a standard interface (and reading man pages is a chore).

The code is available under the BSD license.


Currently supported formats
---------------------------

- tar (uncompressed, gzip, bzip2, lzma, xz)
- 7z
- rar
- zip
- gz
- bz2
- lzma
- xz
- lzo


Dependencies
------------

- p7zip >=9.x for 7z/rar/cab
- A recent tar


Installation
------------

To install for your user::

python setup.py install --user

Or just symlink ``unpack`` to ``~/.local/bin/unpack``.