Bienvenido! - Willkommen! - Welcome!

Bitácora Técnica de Tux&Cía., Santa Cruz de la Sierra, BO
Bitácora Central: Tux&Cía.
Bitácora de Información Avanzada: Tux&Cía.-Información
May the source be with you!

Wednesday, October 6, 2010

Extract rar files under Linux

If normal installation methods are not working for you, download binary package from official rarlab site:
$ cd /tmp
$ wget

Untar file
$ tar -zxvf rarlinux-3.6.0.tar.gz
Both unrar and rar commands are located in rar sub-directory. Just go to rar directory:
$ cd rar
$ ./unrar

Now copy rar and unrar to /bin directory:
# cp rar unrar /bin

How to use unrar
unrar command supports various options below are common options that you need to use everyday.
Task: To open rar (unpack) file in current directory type command: 
$ unrar e myfile.rar
myfile.rar is the filename you want to unpack.
Task: List (l) file inside rar archive: 
$ unrar l myfile.rar
Task: To extract (x) files with full path type command:
 $ unrar x myfile.rar
(D) To test (t) integrity of archive, file type command:
$ unrar t myfile.rar

No comments: