3 Ways to Install or Remove a Program Using RPM

Table of contents:

3 Ways to Install or Remove a Program Using RPM
3 Ways to Install or Remove a Program Using RPM
Anonim

Many Linux distributions use the famous Redhat Package Manager (RPM) to remove and add other programs. Many Linux users have a desire to customize their system by installing new programs, or by eliminating some that are installed along with the operating system. Installing new programs is a complex process, which very often is prone to errors, but, using the Redhat Package Manager, it will all come down to one simple command. Let's see how to proceed.

Steps

Method 1 of 3: Installation

Install or Remove an RPM Package Step 1
Install or Remove an RPM Package Step 1

Step 1. Download the version of RPM you want

There are many versions of RPM on the web, but if you are looking for Red Hat programs, you can find them here:

  • It uses the Red Hat Enterprise Linux Installation Media.
  • It uses YUM package manager software which includes many RPMs.
  • It uses the Extra Packages Enterprise Linux (EPEL) software, has excellent programs that can be used for the Red Hat Enterprise version of linux.
Install or Remove an RPM Package Step 2
Install or Remove an RPM Package Step 2

Step 2. Install the program you want via RPM

Once the download is complete, you can proceed in two ways:

  • Double-click the software icon and follow the instructions that appear on the screen in the installation window, they will guide you through the entire procedure.
  • Open a terminal window and type the following command: 'rpm -i'.

Method 2 of 3: Removal

Install or Remove an RPM Package Step 3
Install or Remove an RPM Package Step 3

Step 1. Open a terminal window and type the following command:

'rpm -e'. Remember not to type the file extension. For example 'rpm -e gedit'.

Method 3 of 3: Parameters of the rpm command

Install or Remove an RPM Package Step 4
Install or Remove an RPM Package Step 4

Step 1. Here is a list of the rpm command parameters

Install or Remove an RPM Package Step 5
Install or Remove an RPM Package Step 5

Step 2. Specific options for the installation parameter, '-i':

  • - h (or --hash) the pound sign (#) is displayed during installation
  • -- test Perform a test installation is created
  • -- percent percentages are displayed during the installation process
  • -- excludedocs the documentation is not installed
  • -- includedocs the documentation is installed
  • -- replacepkgs the package in question is overwritten with a new installation
  • -- replacefiles the listed files are replaced with those from another package
  • -- force installation is forced by ignoring file or package version conflicts
  • -- noscripts no scripts are run before and after installation
  • -- prefix if possible, the package is moved to the folder
  • -- ignorearch the package architecture is not checked
  • -- ignoreos the package operating system version is not checked
  • -- nodeps dependencies are not checked
  • -- ftpproxy it is used as an FTP proxy server
  • -- ftpport it is used as the connection port to the FTP server
Install or Remove an RPM Package Step 6
Install or Remove an RPM Package Step 6

Step 3. General options

  • - v additional information is displayed
  • - vv information for debugging is displayed, which can be used in case of errors
  • -- root the root is set with the new path
  • -- rcfile a new path is specified for the rpmrc files
  • -- dbpath the new path is used to reach the RPM database

Advice

  • In very rare cases, you may need to force an installation. To do this, use the following '--force' parameter of the 'rpm' command. You can only use it for command line installations.
  • Be careful, some 'packages' may have dependencies. This means that, before installing the package you need, you will need to install others, on which the proper functioning of yours will depend. For example, in the case of 'Ogle', you will need to install an open-source program, for DVD playback. This program will require the installation of other software in order to function properly. If the package you are installing has dependencies, but you have decided you want to install it without satisfying them, use the '--nodeps' parameter.
  • By using the -U (update) parameter, instead of -i (install), you are guaranteed to install the latest version of the loaded package.

Recommended: