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.
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.
Steps
Setting
- 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.
- 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 theand
sides)
rpm code
- -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
- -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 therpm
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.
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.
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: