How to open .RAR files in Ubuntu

RAR is a proprietary compression format, owned by the company rarlabs.
Like the acquaintance WinRAR en WindowsThis compression format also exists for GNU / Linux. This is used to compress and decompress files in * .rar format. As it is not installed by default, it is necessary that we install it manually.

This program is used through a terminal, that is, it does not have a graphical interface and requires commands to compress and decompress. There are graphical applications that facilitate this task. 

Installation

The easiest way to handle rar files (in Gnome) is to go to the applications menu and select Add and Remove ... Once there they search for "rar", when the search is finished, select the RAR compression / uncompression tool application and then apply changes. Once downloaded and installed they can handle the rar files.

From the repositories

In order to work with RAR files, we have 2 options:

+ Install the package Unrar which will only allow us to unzip .rar files from our preferred archive manager.

+ Install the package rare which will allow us to compress in .rar format for 40 days (since it is a shareware program) and decompress .rar files from our preferred archive manager.

The most recommended option is to install the unrar package to have support for the .rar files and compress them in .tar.gz, a free, free and widely used format on GNU / Linux, Windows and Mac.

From source code

We can also compile it from the source code, for that we must follow the following steps:

1. Install the following packages:

libstdc ++ 5 make

2. Download the source code:

http://rarlabs.com/rar/rarlinux-3.8.0.tar.gz (773 kB) 

3. Unzip the source code:

$ tar -xvzf rarlinux-3.8.0.tar.gz

4. Go to the folder where the source code was unzipped:

$ cd rar

5. Install the program:

$ sudo make install

6. Go back to the previous folder:

$cd..

7. Delete downloaded files and folder, which are no longer needed:

$ rm -R rar *

These last two steps are optional, they only serve to remove unnecessary files.

Use

To use the command Unrar:

$unrar  - - < @list of files...> 
meter> meter>

Commandos

e Extract files in current directory
l [t, b] List archive [technical, bare] p Print file to stdout
t Test archive files
v [t, b] Verbosely list archive [technical, bare] x Extract files with full path

Parameters

- Stop switches scanning
ad Append archive name to destination path
ap Set path inside archive
av- Disable authenticity verification
c- Disable message presentation
cfg- Disable read settings
cl Convert names to lowercase
cu Convert names to uppercase
dh Open shared files
ep Exclude paths from names
ep3 Expand paths to full including the drive letter
f Freshen files
id [c, d, p, q] Disable messages
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
n Include only specified files
n @ Read file names to include from stdin
n@ Include files from specified file list
or + Overwrite existing files
o- Do not overwrite existing files
or Rename files automatically
ow Save or restore user and group owners of the file
p [password] Set password
p- Do not ask for password
r Recurse subdirectories
sl Process files with size less than specified
sm
Process files with size more than specified
ta Process files modified after in YYYYMMDDHHMMSS format
tb
Process files modified before in YYYYMMDDHHMMSS format
tn

And now we can compress and decompress files in this format.

RAR compatible programs

Besides the program rare original, there are other programs that are capable of working with files RAR. For example, File Roller of the environment GNOME.

See also

Seen in | Ubuntu Guide


Leave a Comment

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

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Rivas said

    It is very difficult but whatever it takes to be able to fuck Bill Doors

  2.   Vicente said

    If you don't want it as a terminal, XArchiver is a good option, it's in the software center and it's GNU free software

  3.   yo said

    I've seen a lot of junk information and this is worse, you're just putting the commands when you type "unrar".