1- Installing WinRAR on Ubuntu There is no doubt that WinRAR is a tool used to compress and decompress the most popular and famous files. It can work with most of compression formats.
Ubuntu isn't able to open.rar files by default. In order to unrar, you'll need to install a small utility. Open a command line terminal and type the following commands to install it: $.
The unrar package is hosted on the Multiverse repository, so first you'll need to enable the Multiverse repository in Software & Updates; Then you can install the package either by using Software Centre or by opening Terminal and running sudo apt-get install unrar.
An updated version of this post for Ubuntu 18.04 LTS (Bionic Beaver) is available here. If you’re looking to cut down on FTP transfer times of many small files, or even just try to extract and archive you’ve just used wget to grab, rar and unrar always come in handy and are included in my default install list for any server I manage.
Ubuntu distributions usually include the zip and unzip utilities. If for some reason yours does not, use the following command to install it: sudo apt-get install zip unzip. The output in our example confirms that the latest version is already installed.
Winrar For Linux
Click 'Yes'
Select Install to start the installation process
Click OK after selecting the parameters you need.
Winrar For Linux Ubuntu
Select Done and you have successfully installed WinRAR!
Click 'Save File'
Click 'Downloads
Click the installer
Click 'Yes'
Select Install to start the installation process
Click OK after selecting the parameters you need.
Select Done and you have successfully installed WinRAR!
Select Done and you have successfully installed WinRAR!
Click 'Run'
Click 'Yes'
Select Install to start the installation process
Click OK after selecting the parameters you need.
Select Done and you have successfully installed WinRAR!
RAR is a file format used for data compression and archiving. The RAR format supports data compression, error recovery and files archives. It also supports files larger than 4 gigabytes. RAR files can only be created through commercial software. You can extract rar file using free unRAR command line tool in Linux.
By default, unRAR is not being installed on Linux or UNIX distro. You need to install unRAR/rar tools with the help of below linux commands.
Install unrar/rar tool
If you are using Redhat Linux or Centos, then use yum command as follows to install unRAR command.
On Redhat/CentOS
On Ubuntu/Debian
On Fedora use dnf command
Listed below are some practical examples of RAR and unRAR command in linux to open,extract and compress files.
1. Extract (open) rar file
If you want to extract all files within the '.rar' file in the current directory run below command
2. Extract files with full path
If you want to extract the files in full path. Run below command
3. List content of a RAR file
To list files inside rar archive file without extracting. Then use 'l' option
4. Check archive integrity
To test the integrity of file archive use 't' option
You can also use the following method to RAR multiple files.
7. Set password for RAR file
While archiving, you can set a password (using -p option). If you omit the password on the command line, you will be prompted with a message “enter password” and the password is case sensitive.
or
Conclusion
In this tutorial we learned how to use rar/unrar command in linux to open,extract and create rar files. Hope you enjoyed reading this and please leave your comments below.