# * you need to install the unrar program rar file to be able to execute the program # The script is very simple, it’s just a quick help if you are interested. # and put the data into a folder with the same name of the file in the curent directory. # I’ve made this simple python3 script to extract a file from a. Let us know your thoughts in the comments below.
#UBUNTU RAR EXTRACTOR HOW TO#
Now that you’ve known how to use RAR files on Ubuntu, will you prefer using it over 7-zip, Zip, or Tar.xz? To get the list of commands for the RAR tool, just type “ rar” in the terminal. Just type in a command using the following syntax: rar u ArchiveName Filename In the same way, you can update/manage the RAR files. In either case, if you want specific files, just mention the exact name/path.īy default, the RAR files reside in HOME directory. When you type a command in this format, it will add every item inside the directory to the archive. In order to do that, follow the command syntax below: rar a ArchiveName File_1 File_2 Dir_1 Dir_2 Here, we will help you create a RAR file. To do that, you need to type in the following command: sudo apt-get install rar So, you need to install the RAR command-line tool to be able to create RAR archives. For instance, if you have the archive in the Music directory, simply type in “ cd Music” to navigate to the location and then extract the RAR file. If the file isn’t present in the Home directory, then you have to navigate to the target folder by using the cd command in Linux. So, you can either perform a right-click on the file and proceed to extract it from there or you can do it via the terminal with the help of this command: unrar x FileName.rar The most common usage would obviously be extracting the RAR file you have. Now install unrar package: sudo apt-get install unrar Step 2: Extract RAR files either graphically or via command lineĪfter installing unrar, you may choose to type in “ unrar” (without the inverted commas) to know more about its usage and how to use RAR files with the help of it. Update the package cache: sudo apt update Launch the terminal and type in the following command to make sure you have multiverse repository enabled in Ubuntu: sudo add-apt-repository multiverse Step 1: Install unrar package from multiverse repository If you want to resolve the error and easily be able to extract RAR files, follow the instructions below to install unrar.