How to Install and Uninstall RPM

Many GNU/Linux distributions use the popular Redhat Package Manager (RPM) distribution system to install or remove programs. Surely everyone who uses Linux at some point wants to install additional software on their computer, or remove a program that comes with their version of Linux. Although installing new software can be quite complicated and confusing, RPM will help you perform that difficult task with just one simple command.

Setting

Picture 1 of How to Install and Uninstall RPM

Download the RPM package you want to install. There are many repositories of RPM packages on the Internet, but if you want to download Red Hat RPM packages, you can find them here:

The Red Hat Enterprise Linux installation media, contains many RPM packages that you can install.

RPM repository with YUM package management tool.

Extra Packages for Enterprise Linux (EPEL) provides high-quality upgrade packages for Red Hat Enterprise Linux.

Picture 2 of How to Install and Uninstall RPM

Install the RPM package. Once downloaded, you have two options:

Double-click the RPM package, a software package management window will appear and guide you through the installation process.

Open a command line window (terminal) and enter rpm -i *package_location_and_name*(no space between the two sides of the word and )

Uninstall

Picture 3 of How to Install and Uninstall RPM

Open a terminal and enter: rpm -e *package_name* . Do not enter the file extension name. For example:rpm -e gedit

rpm code

Picture 4 of How to Install and Uninstall RPM

Below is some rpm -i command syntax.

Picture 5 of How to Install and Uninstall RPM

Install specific options:

-h (or --hash) Display pound signs ("#") during installation

--test Perform Only tests the installation

--percent Show percentage during installation

--excludedocs Do not install included documents

--includedocs Install included documents

--replacepkgs Install a new copy over the previously installed package

--replacefiles Overwrite other package's files

--force Ignore packet-file conflict errors

--noscripts Do not display commands before and after installation

--prefix Pass packets in if possible

--ignoresearch Do not check the package structure

--ignoreos Do not check the package's operating system

--nodeps Do not check for dependent packages

--ftpproxy Use as FTP cache

--ftpport Use as FTP protocol port

Picture 6 of How to Install and Uninstall RPM

General options

-v Show more information

-vv Displays error finding and troubleshooting information

--root Set alternative root for

--rcfile Set replacement rpmrc file for

--dbpath Use to find the database

Update 09 November 2023
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile