How to Install or Remove an RPM Package
Many GNU/Linux distributions use the popular Redhat Package Manager (RPM) system of adding or removing programs. Almost all Linux users will encounter the desire to add software to their computer, or remove a program that came with their...
Method 1 of 3:
Installation
- Download your desired RPM package. There are many RPM depositories on the Internet, but if you're looking for Red Hat RPM packages, you can find them here:
- The Red Hat Enterprise Linux installation media, which contain many installable RPMs.
- The initial RPM repositories provided with the YUM package manager.
- The Extra Packages for Enterprise Linux (EPEL) provides high-quality add-on packages for Red Hat Enterprise Linux.
- Install the RPM package. Once downloaded, you have two options:
- Double-click the package. A package management window will appear with instructions to guide you through the process.
- Open a terminal window, and type
rpm -i *package_location_and_name*
(without the spaces inand
)
Method 2 of 3:
Removal
- Open a terminal window, and type:
rpm -e *package_name*
. Do not type the extension on the file. For example:rpm -e gedit
Method 3 of 3:
rpm codes
- The rpm -i command syntax is listed below.
- Install-specific options:
- -h (or --hash) Print hash marks ("#") during install
- --test Perform installation tests only
- --percent Print percentages during install
- --excludedocs Do not install documentation
- --includedocs Install documentation
- --replacepkgs Replace a package with a new copy of itself
- --replacefiles Replace files owned by another package
- --force Ignore package and file conflicts
- --noscripts Do not execute pre- and post-install scripts
- --prefix Relocate package to if possible
- --ignorearch Do not verify package architecture
- --ignoreos Do not verify package operating system
- --nodeps Do not check dependencies
- --ftpproxy Use as the FTP proxy
- --ftpport Use as the FTP port
- General Options
- -v Display additional information
- -vv Display debugging information
- --root Set alternate root to
- --rcfile Set alternate rpmrc file to
- --dbpath Use to find the RPM database
5 ★ | 1 Vote
You should read it
- How to Convert Package Files in Ubuntu Using Alien
- 9 most popular Linux package managers today
- How to install Pip in Ubuntu
- How to use winget - New Package Manager for Windows 10
- What is a package dependency in Linux?
- How to install Skye on Ubuntu
- Binary and Source Package: Which should be used?
- How to find out if the package is installed in Linux
- How to Install DEB Files
- Instructions for registering V90 package is only 90k to receive the super 3-in-1 integration right away
- Install and configure Apache in Ubuntu
- Package in Python
Maybe you are interested
Intel releases new Wi-Fi driver update package supporting Wi-Fi 7 for Windows 11 24H2
What is G Suite? Concepts and service packages
Everything you need to know about the DNF package manager
Instructions for canceling Canva package subscription
Instructions for changing application subscription packages on the App Store
Microsoft confirms 22H2 is the final version of Windows 10, reducing download package size