Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • DSA
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps
    • Software and Tools
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Go Premium
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
  • SQL
  • Web Development
  • System Design
  • Aptitude
  • GfG Premium
Open In App

How to Install RPM Packages on Linux?

Last Updated : 20 Feb, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Red Hat Package Manager or RPM is a free and open-source package management system for Linux. The RPM files use the .rpm file format.  RPM package manager was created to use with Red Hat Linux, but now it is supported by multiple Linux distributions such as Fedora, OpenSUSE, Ubuntu, etc.

RPM packages can be cryptographically verified with GFG and MD5. They support automatic build-time dependency evaluation.

In this article, we are going to discuss How to install RPM packages on Linux.

Installation of RPM Packages on Linux

Step 1: First, you need to download the installation file. This file can be downloaded using a browser or wget.

To download it using wget, the terminal command is 

wget http://example.com/downloads/mypackage.rpm

 

Step 2: Next, install the package using the following command in the terminal window -

sudo rpm -i mypackage.rpm
 

If the package is already installed, then you can use the following command to upgrade it -

sudo rpm -U mypackage.rpm

Another process is to use yum for the installation of RPM packages.

To install using yum, use the following command in terminal -

sudo yum install packagename
 

Now, the RPM package is successfully installed.  Here we have installed vim editor using an RPM package.

 

Removal of RPM Packages

If you want to remove or uninstall RPM packages from the system, then you can use the following terminal command -

sudo rpm -e packagename

Another process to uninstall RPM packages is using yum.

To uninstall using yum, the terminal command will be -

sudo yum remove packagename

Conclusion

Red Hat Package Manager (RPM) is a strong, popular package manager for Linux which provides ease of software installation, update, and removal. The package was created for Red Hat Linux but also supported by some other Linux variants like Fedora, OpenSUSE, and Ubuntu. The file format.rpm supports efficient package handling, while verification with GPG and MD5 adds security features. RPM packages can be installed using the rpm or yum command by users, thus making it easy to manage software. Software installation, upgrading, or uninstallation is a task that requires one to be an RPM package management master in Linux for effective system administration.


S

satyajit1910
Improve
Article Tags :
  • Installation Guide
  • how-to-install

Similar Reads

    How to Install Packages in Python on Linux?
    To install a package in python, we use pip. The pip is a python package manager. In this tutorial, we will be discussing how we can install packages in python on a Linux system. To install packages in python on Linux, we must have python and pip installed on our Linux machine. As python comes preins
    2 min read
    How to Install PHP on Linux?
    PHP is a popular server-side scripting language that is especially used in web development. If you're working on a Linux environment, whether it's a personal development setup or a production server, you will likely need PHP installed. In this article, we will see the step-by-step guide to install P
    2 min read
    How to Install "Python-PyPDF2" package on Linux?
    PyPDF2 is a Python module for extracting document-specific information, merging PDF files, separating PDF pages, adding watermarks to files, encrypting and decrypting PDF files, and so on. PyPDF2 is a pure python module so it can run on any platform without any platform-related dependencies on any e
    2 min read
    How to Install Python-web2py package on Linux?
    Web2py is a Python package that helps web developers to create dynamic online content. Although a web developer may construct a form from scratch if necessary, Web2py is meant to assist decrease tiresome web development activities like building web forms from scratch. So, in this article, we'll use
    2 min read
    How to Install "Python3-mpi4py" package on Linux?
    Mpi4py is a Python package that implements the Message Passing Interface (MPI) standard. It is built on top of the MPI specification and provides an API based on the standard MPI-2 C++ bindings. This library may be installed using both the pip manager and the apt packager. Python2 and Python3 are su
    2 min read
    How to Install Pytho-BioPython package on Linux?
    Biopython is a collection of publicly accessible Python libraries for biological computing built by a multinational team of developers in Python 3. BioPython is a collaborative effort to provide Python modules and apps that fulfill the demands of present and future bioinformatics research. So, in th
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Campus Training Program
  • Explore
  • POTD
  • Job-A-Thon
  • Community
  • Videos
  • Blogs
  • Nation Skill Up
  • Tutorials
  • Programming Languages
  • DSA
  • Web Technology
  • AI, ML & Data Science
  • DevOps
  • CS Core Subjects
  • Interview Preparation
  • GATE
  • Software and Tools
  • Courses
  • IBM Certification
  • DSA and Placements
  • Web Development
  • Programming Languages
  • DevOps & Cloud
  • GATE
  • Trending Technologies
  • Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
  • Preparation Corner
  • Aptitude
  • Puzzles
  • GfG 160
  • DSA 360
  • System Design
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences