Tag Archives: archive


Unp is a small perl script which makes extraction of any archive files a bit easier. It support several compressors and archiver programs, chooses the right one(s) automatically and extracts one or more files in one go.

sudo apt-get install unp

usage: unp file [file]...
file: compressed file(s) to expand

Use -- to pass arguments to external programs, eg. some tar options:
unp fastgl.tgz xmnt.tgz -- -C /tmp

Special option:
-f Continue even if program availability checks fail
-u For Debian packages:
- extract data.tar.gz after each operation
- extract control.tar.gz in control//
For other archives:
- create directory /
- extract contents there

currently supported extensions and formats are
tar[.gz,.bz2], gz, bz2, Z, ar/deb, rpm, shar, rar, arj, zip, LHa, cab, ace,
tnef, uu (mail, news), mime, hqx, sea, zoo, pmd, cpio, afio, lzop

It doesn’t extract files from RAR archives with full path!

Play videos within *.rar files without unpacking/extracting them in Ubuntu

If you have downloaded some video and it’s packed in multi-volume archive, you can play the file without unpacking.
This is how you do it in Ubuntu. It should work fine on any linux distribution.
You wil need “unrar” and “vlc” or any other video player.

So, in Ubuntu, open a terminal and install these packages. Skip this step if you have allready installed the “unrar” and “vlc” packeges.
sudo apt-get install unrar vlc

Then issue the fallowing command:
unrar p -inul /example/path/to/Some.Scene.Release/some.sr.r00 | vlc -
What the command does:
unrar = starts unrar
p = outputs the extraction data of the file
-inul = disables error messages
/example/path/to/Some.Scene.Release/some.sr.r00 = path to one of the scene release’s rar files
| vlc – = pipes the output of the extraction into vlc that starts to play the output, and therefore plays the video file that is within the rar files. Don’t forget the ending “-“, or it won’t work. You can use another video player if you want, just replace “vlc” with what you want. I have only tested this with vlc and mplayer.

One bad thing with this trick is that you can only pause and play the file, but not rewind or fast forward.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.