TECHIES WORLD

For Techs.... Techniques.... Technologies....

CpanelLinux

How to install Unrar command in Linux

We need to install unrar command for processing rar files in linux

Installation of unrar command

If you are using Debian or Ubuntu Linux,

# apt-get install unrar

If you are using Fedora core Linux / CentOS / RHEL,

# yum install unrar

If you are using FreeBSD,

# pkg_add -v -r unrar

For installing from source,

Step1: Change the location

# cd /usr/local/src

Step2: Download the source file of latest version

# wget http://www.rarlab.com/rar/rarlinux-{version no.}.tar.gz

Step3: Extract the downloaded package

# tar -zxvf rarlinux-{version no.}.tar.gz

Step4: Change the location to installation folder

# cd rar

Step5: Copy rar and unrar file to /bin directory

# cp rar unrar /bin

Notes:

To extract file.rar file into the current directory,

# unrar e file.rar

List files inside rar archive,

# unrar l file.rar

To extract files with full path,

# unrar x file.rar

To test integrity of archive,

# unrar t file.rar

Leave a Reply