Decompressor is a perl script and unix utility that automates the process of decompressing data by invoking the appropriate command. For the time it can automatically decompress the following archive formats:
.z | .Z | .zip | .apk |
.xz | .bz2 | .jar | .pkg |
.gz | .tgz | .tar | .dmg |
.7z | .lz | .rar | .war |
.rz | .arj | .xar | .deb |
The script has been successfully tested on linux and macOS operating systems.
The best way to use this script is to create an alias command. setup.sh
script automatically installs the perl-dependencies and creates an alias command uc
(or what other name you prefer):
To install the perl-requirements manually:
cpanm --installdeps .
cpanm
command allows easy installation of CPAN modules and is part of the App::cpanminus distribution. Of course it's not the only way to install the dependencies.
Since the script works by invoking the appropriate, based on the filetype, commands, the following programs/utilities must be installed (most of the them are pre-installed on linux/macOS systems):
- 7z
- gzip
- dpkg
- xar
- tar
- rzip
- lzip
- unzip
- unrar
- arj (linux) / unarj (macOS)
This project is licensed under the GPLv3 License - see the LICENSE file for details