{"id":839,"date":"2018-10-18T16:08:49","date_gmt":"2018-10-18T16:08:49","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=839"},"modified":"2018-10-18T23:12:02","modified_gmt":"2018-10-18T23:12:02","slug":"how-to-use-rar-files-in-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/18\/how-to-use-rar-files-in-ubuntu-linux\/","title":{"rendered":"How to Use RAR files in Ubuntu Linux"},"content":{"rendered":"<p>Last updated September 27, 2018<\/p>\n<p><a href=\"https:\/\/www.rarlab.com\/rar_file.htm\" target=\"_blank\" rel=\"noopener\">RAR<\/a> is a quite good archive file format. But, it isn\u2019t the best when you\u2019ve got 7-zip offering great compression ratios and Zip files being easily supported across multiple platforms by default. It is one of the most popular archive formats, but, <a href=\"https:\/\/www.ubuntu.com\/\" target=\"_blank\" rel=\"noopener\">Ubuntu<\/a>\u2018s archive manager does not support extracting RAR files nor does it let you create RAR files.<\/p>\n<p>Fret not, we have a solution for you. To enable the support to extract RAR files, you need to install UNRAR \u2013 which is a freeware by <a href=\"https:\/\/www.rarlab.com\/\" target=\"_blank\" rel=\"noopener\">RARLAB<\/a>. And, to create and manage RAR files, you need to install RAR \u2013 which is available as a trial.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/09\/rar-ubuntu-linux.png\" alt=\"RAR files in Ubuntu Linux\" \/><\/p>\n<h2>Extracting RAR Files<\/h2>\n<p>Unless you have it installed, extracting RAR files will show you an error \u201c<em>Extraction not performed<\/em>\u201c. Here\u2019s how it should look like (<a href=\"https:\/\/itsfoss.com\/things-to-do-after-installing-ubuntu-18-04\/\" target=\"_blank\" rel=\"noopener\">Ubuntu 18.04<\/a>):<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/08\/extract-rar-error.jpg\" alt=\"Error in RAR extraction in Ubuntu\" \/><\/p>\n<p>If you want to resolve the error and easily be able to extract RAR files, follow the instructions below to install unrar:<\/p>\n<p>-&gt; Launch the terminal and type in:<\/p>\n<p>sudo apt-get install unrar<\/p>\n<p>-&gt; After installing unrar, you may choose to type in \u201cunrar\u201d (without the inverted commas) to know more about its usage and how to use RAR files with the help of it.<\/p>\n<p>The most common usage would obviously be extracting the RAR file you have. 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:<\/p>\n<p>unrar x FileName.rar<\/p>\n<p>You can see that in action here:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/08\/unrar-rar-extraction.jpg\" alt=\"Using unrar in Ubuntu\" \/><\/p>\n<p>If the file isn\u2019t present in the Home directory, then you have to navigate to the target folder by using the \u201ccd\u201d command. For instance, if you have the archive in the Music directory, simply type in \u201ccd Music\u201d to navigate to the location and then extract the RAR file.<\/p>\n<h2>Creating &amp; Managing RAR files<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/4bds6hergc-flywheel.netdna-ssl.com\/wp-content\/uploads\/2018\/09\/rar-update-create.jpg\" alt=\"Using rar archive in Ubuntu Linux\" \/><\/p>\n<p>UNRAR does not let you create RAR files. So, you need to install the RAR command-line tool to be able to create RAR archives.<\/p>\n<p>To do that, you need to type in the following command:<\/p>\n<p>sudo apt-get install rar<\/p>\n<p>Here, we will help you create a RAR file. In order to do that, follow the command syntax below:<\/p>\n<p>rar a ArchiveName File_1 File_2 Dir_1 Dir_2<\/p>\n<p>When you type a command in this format, it will add every item inside the directory to the archive. In either case, if you want specific files, just mention the exact name\/path.<\/p>\n<p>By default, the RAR files reside in HOME directory.<\/p>\n<p>In the same way, you can update\/manage the RAR files. Just type in a command using the following syntax:<\/p>\n<p>rar u ArchiveName Filename<\/p>\n<p>To get the list of commands for the RAR tool, just type \u201crar\u201d in the terminal.<\/p>\n<h2>Wrapping Up<\/h2>\n<p>Now that you\u2019ve known how to use RAR files on Ubuntu, will you prefer using it over 7-zip, Zip, or Tar.xz?<\/p>\n<p>Let us know your thoughts in the comments below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/secure.gravatar.com\/avatar\/a67d403a75f2c9c4244bf47af021a911?s=70&amp;d=mm&amp;r=g\" alt=\"\" width=\"70\" height=\"70\" \/><\/p>\n<h4>About Ankush Das<\/h4>\n<p>A passionate technophile who also happens to be a Computer Science graduate. He has had bylines at a variety of publications that include Ubergizmo &amp; Tech Cocktail. You will usually see cats dancing to the beautiful tunes sung by him.<\/p>\n<p><a href=\"https:\/\/itsfoss.com\/use-rar-ubuntu-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last updated September 27, 2018 RAR is a quite good archive file format. But, it isn\u2019t the best when you\u2019ve got 7-zip offering great compression ratios and Zip files being easily supported across multiple platforms by default. It is one of the most popular archive formats, but, Ubuntu\u2018s archive manager does not support extracting RAR &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/18\/how-to-use-rar-files-in-ubuntu-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Use RAR files in Ubuntu Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-839","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=839"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/839\/revisions"}],"predecessor-version":[{"id":891,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/839\/revisions\/891"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}