{"id":2409,"date":"2025-02-14T13:26:32","date_gmt":"2025-02-14T13:26:32","guid":{"rendered":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?p=2409"},"modified":"2025-03-26T04:54:20","modified_gmt":"2025-03-26T04:54:20","slug":"install-rpm-files-on-linux","status":"publish","type":"post","link":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/429\/install-rpm-files-on-linux.html","title":{"rendered":"How to Install RPM files on Different Linux Distributions?"},"content":{"rendered":"\n<p>Installing software is routine but critical for Linux admins. RPM files are a common package format, especially meant for Linux distributions like Red Hat Enterprise Linux, CentOS, and Fedora, as well as their derivatives.<\/p>\n\n\n\n<p>Installing RPM files is crucial for system stability and compatibility. This knowledge base encapsulates essential steps for downloading, installing, and removing RPM packages. Whether you manage servers or set up a development environment for your teams, you&#8217;ll find the content useful for installing .rpm files in a Linux environment.\u00a0<\/p>\n\n\n\n<p>So, let&#8217;s dive into it!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What are RPM files?<\/strong><\/h2>\n\n\n\n<p>RPM files, also known as Red Hat Package Manager, store installation packages on Linux operating systems. They are precompiled software packages used primarily in Red Hat-based Linux distributions like RHEL, CentOS, and Fedora.\u00a0<\/p>\n\n\n\n<p>The RPM files comprise application binaries, metadata, and dependencies, which help in the efficient installation and management of software.<\/p>\n\n\n<hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/428\/create-zip-file-in-linux.html\"><strong>Create Zip File With Command in Linux With Examples<\/strong><\/a><\/p><hr>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Outstanding Features of RPM Files<\/strong><\/h3>\n\n\n\n<p>RPM files are neatly wrapped packages that make software installation a breeze. Here&#8217;s what makes them stand out:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>They create a bundle of everything an application needs in one place\u2014executables, libraries, config files, and documentation.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Installing them is straightforward. Linux system admins don\u2019t need to depend on complicated tools or expertise.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>With cryptographic signatures, you can trust their authenticity and integrity.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>They&#8217;re widely used in popular Linux distributions, such as Red Hat, Fedora, CentOS, Rocky Linux, and SUSE.<\/li>\n<\/ul>\n\n\n\n<p>RPM files are great at keeping things simple, secure, and efficient!<\/p>\n\n\n<hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/427\/echo-command-in-linux.html\"><strong>A Guide to Echo Command in Linux With Examples<\/strong><\/a><\/p><hr>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2  <strong>Why are RPM files Used?<\/strong><\/h3>\n\n\n\n<p>RPM files are used to simplify software distribution, installation, and management on Linux systems, especially in Red Hat-based distributions.\u00a0<\/p>\n\n\n\n<p>Let\u2019s look at an example:<\/p>\n\n\n\n<p>Imagine you want to install <strong>Apache HTTP Server<\/strong> on a CentOS server. Without an RPM, you would have to follow a time-consuming and error-prone process:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Manually download the source code,\u00a0<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Compile it,\u00a0<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Resolve all dependencies and<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Configure the software.<\/li>\n<\/ul>\n\n\n\n<p>With an RPM file, you can skip all these complexities. The Apache RPM package comes precompiled with all the necessary binaries, libraries, and configuration files.\u00a0<\/p>\n\n\n\n<p>You simply run the following command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>sudo rpm -ivh httpd-2.4.57.rpm<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>This command will install the server in seconds, automatically handling dependencies and placing files in the right directories.<\/p>\n\n\n\n<p>Additionally, RPM comes with built-in cryptographic signatures to ensure the package is authentic and hasn\u2019t been tampered with. This makes RPM files not just convenient but highly secure and reliable for software management on Linux systems.<\/p>\n\n\n<hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/426\/telnet-command-in-windows.html\"><strong>What is Telnet Command in Windows &amp; How to Use it?<\/strong><\/a><\/p><hr>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2  <strong>Benefits and Challenges of RPM Files<\/strong><\/h3>\n\n\n\n<p>Let us discuss the benefits of installing RPM files and the challenges faced during the process.<\/p>\n\n\n\n<p><strong style=\"font-size:18px\">\u2605 Benefits of RPM Files<\/strong><\/p>\n\n\n\n<p>1. <strong>Ease of Installation and Management<\/strong><\/p>\n\n\n\n<p>RPM files simplify the software installation process by bundling all necessary components\u2014binaries, libraries, configuration files, and documentation\u2014into a single package. Administrators can efficiently install, upgrade, or remove software using simple commands like <strong>rpm -ivh OR yum\/dnf<\/strong>.<\/p>\n\n\n\n<p>2. <strong>Easy Dependency Handling<\/strong><\/p>\n\n\n\n<p>Modern RPM-based package managers, such as <strong>dnf or yum<\/strong>, resolve and install dependencies automatically. They save administrators time and effort by eliminating the need to track and download additional packages manually.<\/p>\n\n\n\n<p>3. <strong>Widely Adopted &amp; Compatible<\/strong><\/p>\n\n\n\n<p>RPM files are the preferred package format for Red Hat-based distributions, including RHEL, Fedora, CentOS, AlmaLinux, and Rocky Linux. They are also compatible with SUSE and various other Linux distributions and offer a wide range of support options.<\/p>\n\n\n\n<p>4. <strong>Security<\/strong><\/p>\n\n\n\n<p>RPM files support cryptographic signatures, enabling administrators to verify the authenticity and integrity of packages. This ensures that the software comes from trusted sources and has not been tampered with.<\/p>\n\n\n\n<p>5. <strong>Version Control and Rollback<\/strong><\/p>\n\n\n\n<p>RPM packages come with helpful metadata about versioning, making it easy for administrators to check which versions are installed. If an update causes a problem, administrators can smoothly roll back to a previous version.<\/p>\n\n\n\n<p>6. <strong>Consistency<\/strong><\/p>\n\n\n\n<p>RPM ensures that files are installed in predefined locations. This maintains consistency across systems and simplifies maintenance.<\/p>\n\n\n<hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/425\/remove-directory-in-linux.html\"><strong>How To Remove Directory in Linux With Command?<\/strong><\/a><\/p><hr>\n\n\n\n<p><strong style=\"font-size:18px\">\u2605 Challenges of RPM Files<\/strong><\/p>\n\n\n\n<p>1. <strong>Dependency can make conditions worse.<\/strong><\/p>\n\n\n\n<p>While modern tools reduce this issue, standalone RPM files can sometimes fail to install due to missing dependencies. Resolving these can be time-consuming and frustrating for administrators.<\/p>\n\n\n\n<p>2. <strong>Limited to Precompiled Packages<\/strong><\/p>\n\n\n\n<p>RPM files are precompiled. Hence, customization has a limited scope. If a user needs specific configurations not included in the package, they might need to compile the software from the source.<\/p>\n\n\n\n<p>3. <strong>Distribution-Specific Compatibility<\/strong><\/p>\n\n\n\n<p>RPM files are often tailored to specific distributions or versions (e.g., RHEL 8 vs. RHEL 9). Using an incompatible RPM can lead to installation failures or system instability.<\/p>\n\n\n\n<p>4. <strong>Lack of Cross-Platform Use<\/strong><\/p>\n\n\n\n<p>RPM files are not directly compatible with non-RPM-based distributions like Ubuntu or Debian, which use .deb files. Conversion tools like Alien can help, but they may introduce complications.<\/p>\n\n\n\n<p>5. <strong>Learning Curve for New Administrators<\/strong><\/p>\n\n\n\n<p>While RPM commands are straightforward, new administrators may initially struggle with advanced features like creating custom RPMs, verifying signatures, or troubleshooting installation errors. Mastering RPM commands takes time and experience.<\/p>\n\n\n<hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/417\/how-to-change-server-time-in-linux.html\"><strong>How to Change Server Time in Linux?<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What are Prerequisites?<\/strong><\/h2>\n\n\n\n<p>Let us understand the prerequisites for installing RPM files on Linux distributions.<\/p>\n\n\n\n<p>1.<strong>Access to a Terminal with Administrative Privileges<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Make sure you have terminal access and the necessary permissions to run commands with <strong>sudo<\/strong> or as the <strong>root<\/strong> user.<\/li>\n<\/ul>\n\n\n\n<p>2. <strong>RPM Package Manager is Installed<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>rpm<\/strong> command-line tool must be available on your system. Most RPM-based distributions, such as RHEL, CentOS, Fedora, and Rocky Linux, include this by default.<\/li>\n<\/ul>\n\n\n\n<p>3. <strong>Supported Linux Distribution<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure your Linux distribution supports RPM files. Examples include Red Hat Enterprise Linux (RHEL), CentOS, Fedora, Rocky Linux, AlmaLinux, and SUSE Linux.<\/li>\n<\/ul>\n\n\n\n<p>4. <strong>Compatible RPM File<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Verify that the RPM file is compatible with your Linux distribution and version to avoid compatibility issues.<\/li>\n<\/ul>\n\n\n\n<p>5. <strong>Dependencies<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check and install any dependencies that the RPM package requires. It is important to note that tools like <strong>yum, dnf<\/strong>, or <strong>zypper<\/strong> (for SUSE) can automatically resolve and install dependencies.<\/li>\n<\/ul>\n\n\n\n<p>6. <strong>Internet Connectivity (Optional but Recommended)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Internet access is not mandatory for standalone RPMs, but having one will help download dependencies or updated versions of the package.<\/li>\n<\/ul>\n\n\n\n<p>7. <strong>GPG Key Verification<\/strong><\/p>\n\n\n\n<p>Obtain and import the GPG key to verify the RPM package\u2019s authenticity.\u00a0<\/p>\n\n\n\n<p><strong>Use commands like:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>rpm &#8211;import &lt;GPG-key-file><\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>8. <strong>SELinux Settings (If Enabled)<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If SELinux is enforced, ensure the RPM package complies with your SELinux policies. You may need to adjust policies using tools like <strong>semanage.<\/strong><\/li>\n<\/ul>\n\n\n\n<p>9. <strong>Disk Space<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Confirm that you have sufficient disk space to install the software and its dependencies.<\/li>\n<\/ul>\n\n\n\n<p>10. <strong>Basic Understanding of RPM Commands<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Familiarize yourself with basic RPM commands for installing, upgrading, and removing packages:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<br><br>rpm -ivh &lt;package.rpm> \u00a0 # Install<\/strong><br><strong>rpm -Uvh &lt;package.rpm> \u00a0 # Upgrade<\/strong><br><strong>rpm -e &lt;package-name>\u00a0 \u00a0 # Remove<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Having these prerequisites in place ensures a smooth installation process for RPM files on your Linux system.<\/p>\n\n\n<hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/412\/access-linux-server-using-putty-terminal.html\"><strong>How To Access Linux Server Using PuTTY SSH Terminal?<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Download the RPM Installation File?<\/strong><\/h2>\n\n\n\n<p>There are two ways to download the RPM installation file.\u00a0<\/p>\n\n\n\n<p>1. From the Internet.<\/p>\n\n\n\n<p>2. From a repository that your package manager uses<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u27a2 <strong>Download the RPM Installation File From the Internet<\/strong><\/h3>\n\n\n\n<p>Following these steps will enable you to securely download RPM files from the internet and prepare them for installation on your Linux system.<\/p>\n\n\n\n<p>To download an RPM file from the internet, use a web browser or the wget tool via the command line. Below are examples for installing <strong>wget<\/strong> on various operating systems:<\/p>\n\n\n\n<p>\u2794 For installing <strong>wget<\/strong> in CentOS and other distributions by using <strong>yum<\/strong>, you have to run the given command below:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>sudo yum install wget<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2794 For installing <strong>wget<\/strong> in Fedora and other distros, In that case, you have to use the syntax that <strong>dnf<\/strong>, run:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>sudo dnf install wget<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2794 Once you installed the <strong>wget <\/strong>command, use the syntax below to download an RPM file from the internet:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>wget http:\/\/some_website\/sample_file.rpm<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2794 You have to replace <strong>http:\/\/some_website\/sample_file.rpm<\/strong> with the link to the RPM file, and the command downloads it to your current directory.<\/p>\n\n\n\n<p><strong style=\"font-size:18px\">\u27a2 Download the RPM installation file from the repository that your package manager uses.<\/strong><\/p>\n\n\n\n<p>Following these steps will enable you to securely download RPM files from your package manager&#8217;s repository to install on your Linux system.<\/p>\n\n\n\n<p>To download RPM files directly from the repository, The <strong>yum<\/strong> and <strong>dnf<\/strong> package managers enable you to download RPM files directly. It is very useful when your bandwidth is limited, or you need to transfer files between systems.<\/p>\n\n\n\n<p>For downloading an RPM file from the repository by using <strong>yum<\/strong>, you have to use the given syntax below:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>sudo yumdownloader [package_name]<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>You have to replace <strong>[package_name]<\/strong> that you want to download.<\/p>\n\n\n\n<p>If you want to download an RPM file with <strong>dnf<\/strong>, you have to use the following syntax:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>dnf download [package_name]<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/401\/how-to-create-sudo-user-in-linux.html\"><strong>How to Create a User in Linux &amp; Add it to the sudoer File?<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Install RPM File on Linux?<\/strong><\/h2>\n\n\n\n<p>Installing an RPM file on Linux is straightforward. Here\u2019s a step-by-step explanation in simple terms:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Open the Terminal<\/strong><\/h3>\n\n\n\n<p>On your Linux system, open the terminal where you\u2019ll enter the necessary commands.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Navigate to the Folder with the RPM File<\/strong><\/h3>\n\n\n\n<p>Use the <strong>cd<\/strong> command to go to the directory where the RPM file is saved.\u00a0<\/p>\n\n\n\n<p><strong>For example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><strong><br>cd \/path\/to\/your\/rpm\/file<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Use the rpm Command to Install the File<\/strong><\/h3>\n\n\n\n<p>To install the RPM file, run:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><strong><br>sudo rpm -ivh package-name.rpm<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Replace<strong> package-name.rpm<\/strong> with the name of your RPM file.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>-i<\/strong> option stands for &#8220;install.&#8221;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>-v<\/strong> adds more details during installation.\u00a0<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>-h<\/strong> shows a progress bar.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. Use yum or dnf for Automatic Dependency Resolution (Preferred)<\/strong><\/h3>\n\n\n\n<p>If the package needs additional files (dependencies), you can use <strong>yum<\/strong> (older systems) or <strong>dnf<\/strong> (modern systems) to install the RPM and its dependencies:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>sudo dnf install .\/package-name.rpm<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p style=\"text-align:center\"><strong>OR<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>sudo yum install .\/package-name.rpm<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5. Verify the Installation<\/strong><\/h3>\n\n\n\n<p>After installation, you must verify if the package is installed properly using:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>rpm -q package-name<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Replace the <strong>package-name<\/strong> with the name of the software (without the <strong>.rpm<\/strong>).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6. Start Using the Installed Software<\/strong><\/h3>\n\n\n\n<p>If the software is a service or application, start or configure it as needed.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>sudo systemctl start service-name<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/423\/login-ssh-using-password-authentication.html\"><strong>How to Log into SSH using Password Authentication?<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to Remove RPM Packages?<\/strong><\/h2>\n\n\n\n<p>Proper removal of RPM packages is crucial, just like installation. To remove an RPM package, you can employ one of the following methods.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"1\">\n<li>Removal using the RPM installer.<\/li>\n\n\n\n<li>Removal using the <strong>yum<\/strong> package manager.<\/li>\n\n\n\n<li>Removal using the <strong>dnf<\/strong> package manager.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Using the RPM Installer<\/strong><\/h3>\n\n\n\n<p>The <strong>rpm<\/strong> command can directly remove installed packages. Use the following steps:<\/p>\n\n\n\n<p>\u2794 <strong>Find the Exact Package Name<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>rpm -q package-name<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Replace the <strong>package-name<\/strong> with the name of the software.<\/p>\n\n\n\n<p>\u2794 <strong>Uninstall the Package<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>sudo rpm -e package-name<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Replace the <strong>package-name<\/strong> with the full name of the installed package.<\/p>\n\n\n\n<p><strong>Example<\/strong>:<\/p>\n\n\n\n<p>To remove Apache HTTP Server, you should run:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>sudo rpm -e httpd<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Using the yum Package Manager<\/strong><\/h3>\n\n\n\n<p><strong>yum<\/strong> is commonly used on older RHEL, CentOS, and Fedora systems. It automatically handles dependencies during uninstallation.<\/p>\n\n\n\n<p>\u2794 Find the Installed Package:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>yum list installed | grep package-name<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2794 Remove the Package:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>sudo yum remove package-name<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2794 Replace the <strong>package-name<\/strong> with the name of the software.<\/p>\n\n\n\n<p><strong>Example<\/strong>:<\/p>\n\n\n\n<p>To remove the Apache HTTP Server:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>sudo yum remove httpd<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Using the dnf Package Manager<\/strong><\/h3>\n\n\n\n<p><strong>dnf<\/strong> is the modern replacement for <strong>yum<\/strong> on newer RHEL, Fedora, and CentOS versions. It\u2019s faster and more efficient.<\/p>\n\n\n\n<p>\u2794 Find the Installed Package:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>dnf list installed | grep package-name<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2794 Remove the Package:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>sudo dnf remove package-name<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2794 Replace the <strong>package-name<\/strong> with the name of the software.<\/p>\n\n\n\n<p><strong>Example<\/strong>:<\/p>\n\n\n\n<p>To remove the Apache HTTP Server:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>bash<\/strong><br><br><strong>sudo dnf remove httpd<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>*Important: Which Method Should You Use?<\/strong><\/h2>\n\n\n\n<p>\u2794 Use <strong>dnf<\/strong> on newer systems (RHEL 8+, CentOS 8+, Fedora).<\/p>\n\n\n\n<p>\u2794 Use <strong>yum<\/strong> on older systems (RHEL 7 or earlier).<\/p>\n\n\n\n<p>\u2794 Use <strong>rpm<\/strong> if you prefer manual control or are working with minimal systems without <strong>yum<\/strong> or <strong>dnf<\/strong>.<\/p>\n\n\n\n<p>Each method safely removes the RPM package successfully, but <strong>yum<\/strong> and <strong>dnf<\/strong> are better for handling dependencies automatically.<\/p>\n\n\n<hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/421\/what-is-pm2-and-how-to-use-it.html\"><strong>What is PM2 and How Can You Use it?<\/strong><\/a><\/p><hr>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Mastering the installation of RPM files is crucial for Linux system administrators, particularly when utilizing distributions such as Red Hat, CentOS, Fedora, or SUSE.\u00a0<\/p>\n\n\n\n<p>Familiarizing yourself with the relevant tools and processes\u2014whether employing the <strong>rpm<\/strong> command for manual operations or utilizing package managers like <strong>dnf<\/strong> or <strong>yum<\/strong> for efficient dependency management\u2014will enable you to carry out software installations smoothly across diverse environments.<\/p>\n\n\n\n<p>This guide equips you with the knowledge to confidently manage RPM-based packages, from downloading RPM files to verifying their authenticity and handling dependencies. With practice, managing RPM files will become an effortless part of your system administration workflow.<\/p>\n\n\n\n<p>Keep exploring, stay updated with your distribution\u2019s package management tools, and you\u2019ll always be ready to install or troubleshoot RPM files with ease!<\/p>\n\n\n    <div class=\"blg-advrt-main blg-prm-bx\">\n        <div class=\"row\" style=\"display: flex; justify-content: space-evenly; align-items: center;\">\n            <div class=\"col-md-5\">\n                <div class=\"blg-advrt-first blg-advrt-right\">\n                    <img decoding=\"async\" src=\"https:\/\/www.hostitsmart.com\/assets\/images\/blog\/Lack-of-Customer-Support.png\" alt=\"Lack-of-Customer-Support\" \/>\n                <\/div>\n            <\/div>\n            <div class=\"col-md-7\">\n                <div class=\"blg-advrt-first blg-advrt-left\">\n                    <div class=\"blg_advrt_cnt\">\n                        You Don\u2019t Deserve a Provider That Not Supports You!                    <\/div>\n                    <p>\n                        You need a hosting provider that stands with you!                    <\/p>\n                    <div class=\"blg-advrt-first-btn affl-blg-btn\">\n                        <a href=\"https:\/\/www.hostitsmart.com\/web-hosting\">\n                            Get Best Hosting                        <\/a>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n    ","protected":false},"excerpt":{"rendered":"<p>Installing software is routine but critical for Linux admins. RPM files are a common package format, especially meant for Linux distributions like Red Hat Enterprise Linux, CentOS, and Fedora, as well as their derivatives. Installing RPM files is crucial for system stability and compatibility. This knowledge base encapsulates essential steps for downloading, installing, and removing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-2409","post","type-post","status-publish","format-standard","hentry","category-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install RPM files on Different Linux Distributions?<\/title>\n<meta name=\"description\" content=\"Learn how to install RPM files on various Linux distributions like CentOS, RHEL, Fedora, and openSUSE. Follow step-by-step commands and install them easily.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/429\/install-rpm-files-on-linux.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install RPM files on Different Linux Distributions?\" \/>\n<meta property=\"og:description\" content=\"Learn how to install RPM files on various Linux distributions like CentOS, RHEL, Fedora, and openSUSE. Follow step-by-step commands and install them easily.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/429\/install-rpm-files-on-linux.html\" \/>\n<meta property=\"og:site_name\" content=\"Host IT Smart Knowledge base\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-14T13:26:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-26T04:54:20+00:00\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/429\/install-rpm-files-on-linux.html\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/429\/install-rpm-files-on-linux.html\",\"name\":\"How to Install RPM files on Different Linux Distributions?\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\"},\"datePublished\":\"2025-02-14T13:26:32+00:00\",\"dateModified\":\"2025-03-26T04:54:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\"},\"description\":\"Learn how to install RPM files on various Linux distributions like CentOS, RHEL, Fedora, and openSUSE. Follow step-by-step commands and install them easily.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/429\/install-rpm-files-on-linux.html\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\",\"name\":\"Host IT Smart Knowledge base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"caption\":\"Admin\"},\"sameAs\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\"],\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install RPM files on Different Linux Distributions?","description":"Learn how to install RPM files on various Linux distributions like CentOS, RHEL, Fedora, and openSUSE. Follow step-by-step commands and install them easily.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/429\/install-rpm-files-on-linux.html","og_locale":"en_US","og_type":"article","og_title":"How to Install RPM files on Different Linux Distributions?","og_description":"Learn how to install RPM files on various Linux distributions like CentOS, RHEL, Fedora, and openSUSE. Follow step-by-step commands and install them easily.","og_url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/429\/install-rpm-files-on-linux.html","og_site_name":"Host IT Smart Knowledge base","article_published_time":"2025-02-14T13:26:32+00:00","article_modified_time":"2025-03-26T04:54:20+00:00","author":"Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/429\/install-rpm-files-on-linux.html","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/429\/install-rpm-files-on-linux.html","name":"How to Install RPM files on Different Linux Distributions?","isPartOf":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website"},"datePublished":"2025-02-14T13:26:32+00:00","dateModified":"2025-03-26T04:54:20+00:00","author":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108"},"description":"Learn how to install RPM files on various Linux distributions like CentOS, RHEL, Fedora, and openSUSE. Follow step-by-step commands and install them easily.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/429\/install-rpm-files-on-linux.html"]}]},{"@type":"WebSite","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/","name":"Host IT Smart Knowledge base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","caption":"Admin"},"sameAs":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/"],"url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/2409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/comments?post=2409"}],"version-history":[{"count":14,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/2409\/revisions"}],"predecessor-version":[{"id":2644,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/2409\/revisions\/2644"}],"wp:attachment":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/media?parent=2409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}