How can I install unrar on Fedora 33/32/31/30. Unrar is a command line tool used to extract files from rar archives. For unexplained reasons, Fedora doesn’t have unrar package on its repositories.

install unrar fedora

The unrar package is available on RPM Fusion repositories. RPM Fusion provides software that the Fedora Project or Red Hat doesn’t want to ship. That software is provided as precompiled RPMs for all current Fedora and Red Hat systems.

Step 1: Add RPM Fusion repository

You need to manually add RPM Fusion repository to your system before installing unrar.

sudo dnf install -y$(rpm -E %fedora).noarch.rpm
sudo dnf install -y$(rpm -E %fedora).noarch.rpm

After adding them, you can install unrar tool on Fedora.

Step 2: Install unrar on Fedora

Use dnf package manager to install unrar on Fedora from RPM Fusion repository.

sudo dnf install -y unrar

Type unrar on your terminal to test installation and check usage page.

$ unrar        

UNRAR 5.71 beta 1 freeware      Copyright (c) 1993-2019 Alexander Roshal

Usage:     unrar <command> -<switch 1> -<switch N> <archive> <files...>
               <@listfiles...> <path_to_extract\>

  e             Extract files without archived paths
  l[t[a],b]     List archive contents [technical[all], bare]
  p             Print file to stdout
  t             Test archive files
  v[t[a],b]     Verbosely list archive contents [technical[all],bare]
  x             Extract files with full path

  -             Stop switches scanning
  @[+]          Disable [enable] file lists
  ad            Append archive name to destination path
  ag[format]    Generate archive name using the current date
  ai            Ignore file attributes
  ap<path>      Set path inside archive
  c-            Disable comments show
  cfg-          Disable read configuration
  cl            Convert names to lower case
  cu            Convert names to upper case
  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<file>       Additionally filter included files
  [email protected]            Read additional filter masks from stdin
  [email protected]<list>      Read additional filter masks from list file
  o[+|-]        Set the overwrite mode
  ol[a]         Process symbolic links as the link [absolute paths]
  or            Rename files automatically
  ow            Save or restore file owner and group
  p[password]   Set password
  p-            Do not query password
  r             Recurse subdirectories
  sc<chr>[obj]  Specify the character set
  sl<size>      Process files with size less than specified
  sm<size>      Process files with size more than specified
  ta[mcao]<d>   Process files modified after <d> YYYYMMDDHHMMSS date
  tb[mcao]<d>   Process files modified before <d> YYYYMMDDHHMMSS date
  tn[mcao]<t>   Process files newer than <t> time
  to[mcao]<t>   Process files older than <t> time
  ts[m,c,a]     Save or restore file time (modification, creation, access)
  u             Update files
  v             List all volumes
  ver[n]        File version control
  vp            Pause before each volume
  x<file>       Exclude specified file
  [email protected]            Read file names to exclude from stdin
  [email protected]<list>      Exclude files listed in specified list file
  y             Assume Yes on all queries

Test integrity of file to be extracted with unrar.

$ unrar t myfile.rar

UNRAR 5.71 beta 1 freeware      Copyright (c) 1993-2019 Alexander Roshal

Testing archive myfile.rar

Testing     tut1.mp4                                                OK 
Testing     tut2.mp4                                                OK 
Testing     tut3.mp4                                                OK 
Testing     tut4.mp4                                                OK 
Testing     tut5.mp4                                                OK 
All OK

Then extract your file.

$ unrar e myfile.rar 

UNRAR 5.71 beta 1 freeware      Copyright (c) 1993-2019 Alexander Roshal

Extracting from proxycerts.rar

Extracting  tut1.mp4                                                  OK 
Extracting  tut2.mp4                                                  OK 
Extracting  tut3.mp4                                                  OK 
Extracting  tut4.mp4                                                  OK 
Extracting  tut5.mp4                                                  OK 
All OK

You have successfully installed, tested and used unrar on a Fedora system. Check other Fedora guides available in our blog.

Install Visual Studio Code on Fedora

How to Install VirtualBox on Fedora

How To Install Polybar Status bar on Fedora

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here