While working with data several time I need to extract rar files directly on server instead of downloading those files on local computer and upload those files again its better to extract them directly on server and work with extracted files I use several methods to install RAR on server but most of the time UnRar didn’t work properly for me usually it gives library missing error so I found a working way to unrar files on Centso / Cpanel linux server.
Install UnRAR on Centos / CPanel Server
First I have tried Yum Installation:
# yum install unrar
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.iweb.ca
* extras: centos.mirror.iweb.ca
* updates: centos.mirror.iweb.ca
base | 3.7 kB 00:00 extras 3.5 kB 00:00 updates | 3.5 kB 00:00
Setting up Install Process
No package unrar available.
Error: Nothing to do
So Yum Installation didn’t work for me.
Manual Install RAR / UnRAR
#cd ~
#wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz
#tar -zxvf rarlinux-3.6.0.tar.gz
go to
#cd /root/rar
Unrar Files on Centos / Linux Server
First create a test file on /home directory (for example test.rar) and create a directory “test” in “home” directory (/home/test) now unrar test.rar into “test” folder.
Now run command from there
Step 1:
cd ~/rar
#./unrar x /home/test.rar /home/test
# ./unrar x /home/test.rar /home/test
UNRAR 4.20 freeware Copyright (c) 1993-2012 Alexander Roshal
Extracting from /home/test.rar Extracting /home/test/test.txt
All OK
Thats’all following these easy steps you can UnRAR any RAR file on Cpanel / Centos Server












