Install unrar command
Under Debian or Ubuntu Linux, you need to type apt-get command as follows to install unrar program:# apt-get install unrarIf you are using Fedora core Linux / CentOS / RHEL, use yum command as follows (see discussion below for more):
# yum install unrarIf you are using FreeBSD, enter:
# pkg_add -v -r unrarIf any of above, methods is not working for you, download binary package from official rarlab site:
$ cd /tmp
$ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gzNext, untar file, enter:
$ tar -zxvf rarlinux-3.6.0.tar.gzBoth unrar and rar commands are located in rar sub-directory. Just cd to rar directory, type:
$ cd rar
$ ./unrarNow copy rar and unrar file to /bin directory, type:
# cp rar unrar /binHowTo: Use unrar Command
The unrar command supports various options, below are common options that you need to for extracting files.Task: Exreact rar (unpack) File
To extract file.rar file into the current directory, enter:$ unrar e file.rarTask: List (l) file inside rar archive:
$ unrar l file.rarTask: To extract (x) files with full path type command:
$ unrar x file.rar(D) To test (t) integrity of archive, file type command:
$ unrar t file.rar
No comments:
Post a Comment