{"id":14936,"date":"2022-02-04T10:31:37","date_gmt":"2022-02-04T10:31:37","guid":{"rendered":"https:\/\/linuxways.net\/?p=14936"},"modified":"2022-02-04T10:31:37","modified_gmt":"2022-02-04T10:31:37","slug":"how-to-install-unrar-on-fedora-35-34-33-32","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/red-hat\/how-to-install-unrar-on-fedora-35-34-33-32\/","title":{"rendered":"How to Install UNRAR on Fedora 35\/34\/33\/32"},"content":{"rendered":"<p>The GNU unrar is a freeware used to extract compressed files in RAR format. It is completely free and opensource and also used in Windows command-line to extract RAR files.<\/p>\n<p>In this guide, we demonstrate how you can install UNRAR freeware utility on Fedora 35\/34\/33\/32, and later on, showcase a few command-line usages.<\/p>\n<h2><strong>Step 1: Enable RPMFusion repository<\/strong><\/h2>\n<p>We will start off by enabling the RPM Fusion repository. This is a repository that provides add-on software packages that are not included in the official Fedora repositories. These include proprietary software packages and those that are closed source.<\/p>\n<p>RPM Fusion provides both free and non-free repositories. To install UNRAR, we need to enable both of these repositories.<\/p>\n<p>To enable the free RPM Fusion, run the command:<\/p>\n<pre><strong>$ sudo dnf install https:\/\/mirrors.rpmfusion.org\/free\/fedora\/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm <\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"373\" class=\"wp-image-14937\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-201.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-201.png 710w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-201-300x158.png 300w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><\/strong><\/p>\n<p>The output herein confirms that the repository has been installed.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"714\" height=\"272\" class=\"wp-image-14938\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-202.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-202.png 714w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-202-300x114.png 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/strong><\/p>\n<p>To install the RPM Fusion non-free repository, run the command:<\/p>\n<pre><strong>$ sudo dnf install \\<\/strong><\/pre>\n<pre><strong>https:\/\/download1.rpmfusion.org\/nonfree\/fedora\/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"762\" height=\"407\" class=\"wp-image-14939\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-203.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-203.png 762w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-203-300x160.png 300w\" sizes=\"auto, (max-width: 762px) 100vw, 762px\" \/><\/strong><\/p>\n<p>The following output confirms that the non-free repository is installed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"273\" class=\"wp-image-14940\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-204.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-204.png 749w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-204-300x109.png 300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/p>\n<p>To confirm that both repositories have been installed by the following command:<\/p>\n<pre><strong>$ sudo dnf repolist | grep rpmfusion<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"762\" height=\"186\" class=\"wp-image-14941\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-205.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-205.png 762w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-205-300x73.png 300w\" sizes=\"auto, (max-width: 762px) 100vw, 762px\" \/><\/strong><\/p>\n<p>Perfect ! All the repositories are enabled. Now let us proceed and install UNRAR.<\/p>\n<h2><strong>Step 2: Install unrar on Fedora <\/strong><\/h2>\n<p>With the repositories in place, use the DFN package manager to install unrar package.<\/p>\n<pre><strong>$ sudo dnf install unrar<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"400\" class=\"wp-image-14942\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-206.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-206.png 769w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-206-300x156.png 300w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/strong><\/p>\n<p>Accept the GPG key by pressing \u2018Y\u2019 and pressing ENTER. Finally, unrar wil be installed.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"346\" class=\"wp-image-14943\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-207.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-207.png 766w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-207-300x136.png 300w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/strong><\/p>\n<p>You can get in-depth information about unrar as follows:<\/p>\n<pre><strong>$ rpm -qi unrar<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"413\" class=\"wp-image-14944\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-208.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-208.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-208-300x161.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/strong><\/p>\n<h2><strong>Step 3: How to use unrar to extract files<\/strong><\/h2>\n<p>With unrar installed, perhaps you might want to get a summary of all the possible commands that you can use. To do this, run the following command:<\/p>\n<pre><strong>$ unrar<\/strong><\/pre>\n<p>This will provide a list of all the possible options that you can use.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"411\" class=\"wp-image-14945\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-209.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-209.png 689w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-209-300x179.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-209-501x300.png 501w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/strong><\/p>\n<p>For example, to extract a file without archived paths, use the syntax:<\/p>\n<pre><strong>$ unrar e filename.rar<\/strong><\/pre>\n<p>In this example, we are extracting the contents of the file <strong>linuxways.rar.<\/strong><\/p>\n<pre><strong>$ unrar e linuxways.rar<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"416\" class=\"wp-image-14946\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-210.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-210.png 686w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-210-300x182.png 300w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/strong><\/p>\n<p>From the output, you can see that the command extracts the files individually.<\/p>\n<p>If you wish to extract the files with the full path i.e. in a directory bearing the name of the rar file, use the<strong> x<\/strong> option as follows.<\/p>\n<pre><strong>$ unrar x filename.rar<\/strong><\/pre>\n<p>For example,<\/p>\n<pre><strong>$ unrar x linuxways.rar<\/strong><\/pre>\n<p>This extracts the contents of the rar file into a directory called <strong>linuxways<\/strong> in the current working directory. This provides a better way of grouping your extracted files.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"688\" height=\"426\" class=\"wp-image-14947\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-211.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-211.png 688w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-211-300x186.png 300w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/strong><\/p>\n<p>If you are only interested in listing the files contained in a RAR file, use the <strong>l<\/strong> option as follows.<\/p>\n<pre><strong>$ unrar l filename.rar<\/strong><\/pre>\n<p>For example, to lists the contents of the <strong>linuxways.rar <\/strong>file run:<\/p>\n<pre><strong>$ unrar l linuxways.rar<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"679\" height=\"386\" class=\"wp-image-14948\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-212.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-212.png 679w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-212-300x171.png 300w\" sizes=\"auto, (max-width: 679px) 100vw, 679px\" \/><\/strong><\/p>\n<p>Those are just a few command examples. For more on how to use the unrar utility, check out the man pages.<\/p>\n<pre><strong>$ man unrar<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"458\" class=\"wp-image-14949\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-213.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-213.png 689w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-213-300x199.png 300w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/strong><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>UNRAR is a great option for extracting RAR files and provides a myriad of options depending on how you want your files organized upon extraction. We trust that you now have fundamental knowledge on how to install and use UNRAR freeware on Fedora.<\/p>","protected":false},"excerpt":{"rendered":"<p>The GNU unrar is a freeware used to extract compressed files in RAR format. It is completely free and opensource and also used in Windows command-line to extract&hellip;<\/p>","protected":false},"author":1,"featured_media":14976,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165],"tags":[857,856,826,831,900],"class_list":["post-14936","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-red-hat","tag-fedora-32","tag-fedora-33","tag-fedora-34","tag-fedora-35","tag-unrar"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/14936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=14936"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/14936\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/14976"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=14936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=14936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=14936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}