This beginner article explains how to install RPM packages on Fedora and Red Hat Linux. It also shows you how to remove those RPM packages afterwards.
When you start using Fedora Linux in the Red Hat domain, sooner or later, you’ll come across .rpm files. Like .exe files in Windows and .deb files in Ubuntu and Debian, .rpm files enable you to quickly install a software from it on Fedora.
You could find and install plenty of software from the software center, specially if you enable additional repositories in Fedora. But sometimes you’ll find software available on their website in RPM format.
Like .exe files in Windows, you download the .rpm file and double click on it to install it. Don’t worry, I’ll show you the detailed steps.
Installing RPM files on Fedora and Red Hat Linux
I’ll be showing you three ways to install RPM files:
- Install RPM files with software center (GUI method)
- Install RPM files using DNF command (CLI method)
- Install RPM files using Yum command (CLI method for Red Hat)
Method 1: Use software center
The simplest method is to use the default software center in Fedora. It’s really simple. Go to the folder where you downloaded the .rpm file. It is usually the Downloads folder.
Just double click on the RPM file and it will be opened in the software center.
Alternatively, you can right click on the file and choose to install it via Software Center.

When it is opened in the software center, you should see the installation option. Just hit the install button and enter your account’s password when prompted for it.

It’s easy, right?
Method 2: Use DNF command to install RPM file
This is the command line method. Fedora uses the new DNF package manager and you can use it to install downloaded RPM files as well.
Open a terminal and switch to the directory where you have the RPM file downloaded. You can also provide the path to the RPM file. Use the DNF command like this:
sudo dnf install rpm_file_name
Here’s a screenshot where I installed Google Chrome on Fedora with dnf command:

Method 3: Install RPM files in Red Hat using Yum command
Unlike Fedora, Red Hat still uses the good old Yum package manager. You won’t find the DNF command here, yet.
The process is the same as DNF command. You go to the directory where the RPM file is located or provide its path.
sudo yum install path_to_RPM_file
That’s it. Nothing fancier.
How to remove RPM packages
Removing a RPM package isn’t a big deal either. And no, you don’t need the original rpm file that you used to install the program.
You may find the installed package in the software center and remove application from there.

Alternatively, you can use the DNF or YUM command with remove
option.
With DNF, use this command:
sudo dnf remove rpm_package_name
With Yum, use this command:
sudo yum remove rpm_package_name
You probably won’t remember the exact package name and that’s fine. What you can do is to type the first few letters of the package and then hit tab. This is assuming that you have tab completion enabled which usually is.
And that’s all you need to do here. Pretty simple, right? Being a beginner, you may struggle with a simple task like this and I hope you feel more confident with Fedora thanks to quick tutorials like this.
It is very nice instruction, but I suggest add some security remark that user should avoid installing packages outside trusted locations. Separate installation of .rpm/.deb/etc files is task for power users only that know about security concerns related with it. I mean – “average” user should avoid it.
It is true that installing .rpm is like installing .exe/.msi on Windows, but in a very negative sense. I mean – if you do it with hostile package – your computer could be compromised… I Windows world it is normal to install everything via .exe/.msi packages downloaded from some websites -> the reason for it is that Windows 10 MetroAppStore is sooo terrible (a lot of popular programs are missing and… you can quite easily find plenty of malicious applications impersonating some popular ones!).
On Linux world is much different. You should install only packages that are from trusted repos (for Fedora it is semi-official rpmfusion.org and flathub.org). If it is not the case – you need very carefully decide if this package could be trusted and you really need it. On Linux side probably it is about installing some commercial applications like Steam, Google Chrome, Microsoft Edge, Microsoft Teams, NoMachine, etc. Some of them – like Steam, MS Teams – could be installed via Fedora Gnome Software and/or flathub.org so manual installation is even less recommended.
“user should avoid installing packages outside trusted locations”
Very glib advice. How does the user do that? Sites do not label themselves as “trusted” or “untrusted”. Packages are not labeled “trusted” or “untrusted”. As an example, one would think that Google Apps Store can be trusted and yet how many thousands of apps have been already deleted from it because they contained malware and Google is constantly finding thousands more. Other than downloading packages from the official distro repositories, there are NO guaranteed “trusted” locations.
By “avoid installing packages outside trusted locations” I meant: install packages only from trusted Linux repos.
In Fedora trusted repos are official ones enabled “by default” plus semi-official repo rpmfusion.org and flathub.org.
Fedora repos (and generally other popular Linux distributions) are much different from Windows MetroAppStore, Android Market or in theory strictly controlled iOS AppStore. I do not remember even one situation that there was published malicious package in official or semi-official Fedora repo. OK – maybe with flathub.org a little caution is advisable – on flathub.org are also published commercial applications that cannot be fully trusted, but thanks to sandbox nature of flathub – even malicious application cannot harm the host system. Malicious RPM package – could do everything (even `rm -rf /`;)
The first lesson for new Linux user should be: unlike it is in Windows MetroAppStore and other mobile official scam-and-microtransaction-store – in the Linux world you could trust official repos.
Hi,
What does the line “This comment is awaiting moderation” mean?
This means comments will have to be approved before they are published. All the comments on itsfoss are only published with manual approval.
I’m gonna install Fedora today. This is a timely article… Thanks Abishek
Notice: you don’t need to download the RPM from the Google website, Fedora already makes Google Chrome available through GNOME Software; just search for it and click “install”.
That’s right and we have covered it separately. This was used as an example to show how to use RPM files.
on the last paragraph you writed ad not and
Thanks for noticing it. Updated the article.