Install unrar on Linux

To install unrar on Ubuntu, run

apt install -y unrar

On CentOS/RHEL

yum install unrar

To install from source, download latest version from

https://www.rarlab.com/download.htm

cd /usr/local/src
wget https://www.rarlab.com/rar/rarlinux-x64-5.6.b5.tar.gz
tar zxvf rarlinux-x64-5.6.b5.tar.gz
cd rar
cp rar unrar rar_static /usr/bin

Extract a rar file

unrar x FILE_NAME.rar

Extract a rar file to specific folder

unrar x FILE_NAME.rar FOLDER_NAME

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *