• About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy Policy
  • Change the purpose of use

Tnhelearning.edu.vn - Various useful general information portal

  • Photo
  • Bio
  • How To
  • Tech

How to Install and Uninstall RPM

January 19, 2024 by admin Category: How To

You are viewing the article How to Install and Uninstall RPM  at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.

X

wikiHow is a “wiki” site, which means that many of the articles here are written by multiple authors. To create this article, 21 people, some of whom are anonymous, have edited and improved the article over time.

This article has been viewed 5,107 times.

Many distributions of GNU/Linux use the popular distribution system Redhat Package Manager (RPM) to install or remove programs. Surely every Linux user has at times wanted to install additional software on their computer, or remove a program that came with the version of Linux. While installing new software can be quite complicated and confusing, RPM will help you with that daunting task with just one simple command.

Table of Contents

  • Steps
    • Setting
    • Uninstall
    • rpm code
  • Tips
  • Warning

Steps

Setting

Image titled Install or Remove an RPM Package Step 1

Image titled Install or Remove an RPM Package Step 1

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/0/0c/Install-or-Remove-an-RPM-Package-Step-1-Version-4.jpg/v4-728px- Install-or-Remove-an-RPM-Package-Step-1-Version-4.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/0/0c/Install-or- Remove-an-RPM-Package-Step-1-Version-4.jpg/v4-728px-Install-or-Remove-an-RPM-Package-Step-1-Version-4.jpg”,”smallWidth”:460 ,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Download the RPM package you want to install. There are many 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.
Image titled Install or Remove an RPM Package Step 2

Image titled Install or Remove an RPM Package Step 2

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/9/96/Install-or-Remove-an-RPM-Package-Step-2-Version-4.jpg/v4-728px- Install-or-Remove-an-RPM-Package-Step-2-Version-4.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/9/96/Install-or- Remove-an-RPM-Package-Step-2-Version-4.jpg/v4-728px-Install-or-Remove-an-RPM-Package-Step-2-Version-4.jpg”,”smallWidth”:460 ,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Install the RPM package. Once downloaded, you have two options:

  • Double-click the RPM package, a package manager window will appear and guide you through the installation process.
  • Open a command line (terminal) and enter rpm -i *package_location_and_name* (no space between the and sides)
READ More:   Is it bad to argue when you first fall in love?

Uninstall

Image titled Install or Remove an RPM Package Step 3

Image titled Install or Remove an RPM Package Step 3

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/0/07/Install-or-Remove-an-RPM-Package-Step-3-Version-5.jpg/v4-728px- Install-or-Remove-an-RPM-Package-Step-3-Version-5.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/0/07/Install-or- Remove-an-RPM-Package-Step-3-Version-5.jpg/v4-728px-Install-or-Remove-an-RPM-Package-Step-3-Version-5.jpg”,”smallWidth”:460 ,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Open a command line (terminal) and type: rpm -e *package_name* . Do not enter the file extension. Example: rpm -e gedit

rpm code

Image titled Install or Remove an RPM Package Step 4

Image titled Install or Remove an RPM Package Step 4

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/a/a2/Install-or-Remove-an-RPM-Package-Step-4-Version-5.jpg/v4-728px- Install-or-Remove-an-RPM-Package-Step-4-Version-5.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/a/a2/Install-or- Remove-an-RPM-Package-Step-4-Version-5.jpg/v4-728px-Install-or-Remove-an-RPM-Package-Step-4-Version-5.jpg”,”smallWidth”:460 ,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Here is some rpm -i command syntax.
Image titled Install or Remove an RPM Package Step 5

Image titled Install or Remove an RPM Package Step 5

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/4/45/Install-or-Remove-an-RPM-Package-Step-5-Version-5.jpg/v4-728px- Install-or-Remove-an-RPM-Package-Step-5-Version-5.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/4/45/Install-or- Remove-an-RPM-Package-Step-5-Version-5.jpg/v4-728px-Install-or-Remove-an-RPM-Package-Step-5-Version-5.jpg”,”smallWidth”:460 ,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Set specific options:

  • -h (or –hash) Displays a pound sign (“#”) during installation
  • –test Perform Install test only
  • –percent Show percentage during installation
  • –excludedocs Do not install attachments
  • –includedocs Install the included documentation
  • –replacepkgs Overwrite a fresh copy of a previously installed package
  • –replacefiles Overwrite other packages’ files
  • –force Ignore packet-file conflicts
  • –noscripts Do not display commands before and after installation
  • –prefix <path> Move packets to <path> if possible
  • –ignorearch Don’t check package structure
  • –ignoreos Do not check the package’s operating system
  • –nodeps Do not check for dependent packages
  • –ftpproxy<host> Use <host> as FTP cache
  • –ftpport <port> Use <port> as FTP protocol port
  • Image titled Install or Remove an RPM Package Step 6

    Image titled Install or Remove an RPM Package Step 6

    {“smallUrl”:”https://www.wikihow.com/images_en/thumb/6/6c/Install-or-Remove-an-RPM-Package-Step-6-Version-5.jpg/v4-728px- Install-or-Remove-an-RPM-Package-Step-6-Version-5.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/6/6c/Install-or- Remove-an-RPM-Package-Step-6-Version-5.jpg/v4-728px-Install-or-Remove-an-RPM-Package-Step-6-Version-5.jpg”,”smallWidth”:460 ,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
    General options

    • -v Show more information
    • -vv Display information to find and fix errors
    • –root <path> Set alternative root for <path>
    • –rcfile <rcfile> Set an alternative rpmrc file for <rcfile>
    • –dbpath <path> Use <path> to find the database
  • Tips

    • It may be rare that you need to tell the installer to ignore conflicting errors, but maybe, sometimes you will. If you want to exercise this option, change --force to the rpm command. This option runs only on the command line.
    • Use the -U (update – update) parameter instead of the -i (install – install) parameter to ensure that you are installing the latest RPM version.
    • Some packages will come with dependencies . This means: if you want one package to work, sometimes you have to install additional packages. For example, Ogle, the open source DVD player. If only the Ogle package, this program will not be able to play DVD, you must install some other programs, in addition to the main Ogle package. If rpm has dependent packages and you don’t care about dependent packages, you can use the –nodeps (Do not check dependent package) option.
    READ More:   How to Download YouTube Videos with Opera Mini (on Phone)

    Warning

    • When installing or removing any program from the system, some data used to run other programs may be overwritten, so you should always be cautious.
    X

    wikiHow is a “wiki” site, which means that many of the articles here are written by multiple authors. To create this article, 21 people, some of whom are anonymous, have edited and improved the article over time.

    This article has been viewed 5,107 times.

    Many distributions of GNU/Linux use the popular distribution system Redhat Package Manager (RPM) to install or remove programs. Surely every Linux user has at times wanted to install additional software on their computer, or remove a program that came with the version of Linux. While installing new software can be quite complicated and confusing, RPM will help you with that daunting task with just one simple command.

    Thank you for reading this post How to Install and Uninstall RPM at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.

    Related Search:

    Related Posts

    How to Create Curved Text in Photoshop
    How to fall asleep faster
    How to Install FBReader to Read eBooks

    Category: How To

    Previous Post: « Tom Ford
    Next Post: Change the wind with how to make dumplings for breakfast more interesting »

    Copyright © 2025 · Tnhelearning.edu.vn - Useful Knowledge