Pages

Saturday, May 17, 2014

unrar

When you need to extract a RAR archive then you need unrar. Depending on your distribution you need to install unrar first. I use Slackware so I have to download the source and compile them. The first step is to download the sources:

# cd /usr/src/
# wget -c "http://www.rarlab.com/rar/unrarsrc-5.1.5.tar.gz"
...


Then extract the gzipped tar archive:

# tar xf unrarsrc-5.1.5.tar.gz

A new dirctory unrar will be create so change into it:

# cd unrar

Next run make to compile the sources:

# make
...


After make has finished check if the unrar binary was created:

# ls -la unrar
-rwxr-xr-x 1 root root 278808 May 17 23:49 unrar*


Finally copy the new unrar binary to /usr/local/bin:

# cp unrar /usr/local/bin

As a user you can extract your RAR archives now:

$ unrar x archive.rar
...

No comments:

Post a Comment