RPM, short for Red Hat Package Manager, serves as a primary tool within Red Hat-based distributions like RHEL, Fedora, and CentOS. This package management system facilitates effortless installation, updates, and removals of .rpm software packages within Unix/Linux environments. While YUM and DNF package managers are also prevalent, RPM remains useful for its control over installation. Today I will show you how to install a local .rpm package using the rpm command in Red Hat-based distributions.
- Install the local package using rpm in Red Hat-based distributions.
- A Red Hat-based distribution is required.
Process Flow Chart
[Distro Used Throughout the Tutorial: RHEL 9.2]
Steps to Install Local Package Using RPM
Installing a local app package using the rpm package manager is a very simple task in Red Hat-based Linux systems. In this guide, I will navigate you through RPM’s local package installation steps. If you want to know how to list installed packages using rpm check this fantastic article “How to List Installed Packages Using RPM”. For uninstalling an app package using rpm check this another detailed article “How to Uninstall RPM in Linux”.
Steps to Follow >
➊ Before starting, download the .rpm package file for the app you want to install. You can usually find it on the official website of the app or in third-party repositories. You can also create the .rpm file from the .deb file using the alien package.
➋ Now, run the following command in the terminal to move to the directory where the .rpm file is located:
➌ After that, execute the following command to view all the files and folders in that directory:
➍ Finally, run the following command to install your app package:
sudo rpm -i google-chrome-stable_current_x86_64.rpm
After installing the app package, your command line interface should look like the above image.
In this article, I have discussed the simplest way to install an app package from a local file using RPM in a Red Hat-based system. I hope this article has been helpful and you were able to install a package from a local file in your Linux system.