Tuesday, December 21, 2010

UNP a Universal File Unpacking Utility for Ubuntu / Debian

Unp is a small perl script which makes extraction of any archive files in easy way. It support several compressors and archiver programs, chooses the right one(s) automatically and extracts one or more files using a single command. It supports rar, zip, tar.gz, deb, tar.gz2, rpm etc..

How to Install unp in ubuntu / Debian

$ sudo apt-get install unp

Usage Method 1 (unpack all archives in a directory)

$ unp *.*

Method 2 (unpack, for example, all .rar archives in a directory):

$ unp *.rar

Method 3 (unpack 1 archive):

$unp archivefile

Method 4 (unpack several archives at the same time):

$unp archivefile1 archivefile 2

More examples
unp *.tar.gz, unp *.tar.bz, unp *.rpm, unp *.deb, unp *.zip, unp *.rar

$man unp ( for more help)

A simple error noted in unp is , It doesn’t extract RAR archives with full path