Table of Contents
This tip is about the how to Run an RPM File in Linux. So read this free guide, How to Run an RPM File in Linux step by step. If you have query related to same article you may contact us.
How to Run an RPM File in Linux – Guide
RPM is a packaging system used by Red Hat and its derivatives like CentOS and Fedora. CentOS authority files contain a large number of RPM packages that can be installed using the yum order line utility. Packages that are not accessible from the default CentOS warehouses can be installed effectively by activating the tweak file. Anyway, not all software merchants offer a yum deposit for their application. More often, under these circumstances, they will have a download page from where you can download and install the RPM package or download and compile the software from sources. In that tutorial In this exercise, we will tell you two techniques for the best way to install RPM packages on CentOS.
How to Run an RPM file on Linux
Use the software center
The simplest method is to use the default software center in Fedora. It’s very simple. Go to the folder where you downloaded the .rpm file. It is usually the Downloads folder. Just double-click the RPM file and it will open in the software center. Alternatively, you can right-click the file and choose to install it via Software Center. When it opens in the software center, you will see the installation option. Just hit the install button and enter your account password when prompted.
Use the DNF command to install the RPM file
This is the command line method. Fedora uses the new DNF package manager and you can also use it to install downloaded RPM files. Open a terminal and change to the directory where you downloaded the RPM file. You can also provide the path to the RPM file. Use the DNF command like this.
sudo dnf install rpm_file_name
Install RPM files on Red Hat using the Yum command
Unlike Fedora, Red Hat still uses the good old Yum package manager. You still won’t find the DNF command here. The process is the same as the DNF command. You go to the directory where the RPM file is located or provide its path.
sudo yum install path_to_RPM_file
How to remove RPM packages
Removing an RPM package is also no big deal. And no, you don’t need the original rpm file used to install the program. You can find the installed package in the software center and remove the application from there. Alternatively, you can use the DNF or YUM command with the removal option. With DNF, use this command:
sudo dnf remove rpm_package_name
With Yum, use this command:
sudo yum remove rpm_package_name
Final note
I hope you like the guide How to Run an RPM File in Linux. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.