In the next year, more people will learn about Linux, and you may encounter problems of installing, upgrading, querying, and uninstalling the RPM package, here we will introduce how to install, upgrade, query, and uninstall the RPM package. Here we will share with you some of the solutions.
Installing, upgrading, and detaching application software is one of the decisive factors that affect users' evaluation of the operating system. For the increasingly popular GNU/Linux operating systems, it is essential to have a concise and powerful software package management mechanism. Starting from the basic rpm/dpkg command line, this article takes RHEL and UBUNTU as examples to introduce the management and use of application software in typical Linux systems.
In the GNU/Linux (Linux) Operating System, RPM and DPKG are the two most common software package management tools, they are applied to RPM-based Linux releases and DEB-based Linux releases. The software package management tool is used to install, upgrade, and uninstall required software in the operating system, and to query the status information of all software in the system.
RPM is called RedhatPackageManager. It was first developed and implemented by RedHat, and subsequently accepted by the GNU open-source operating system and became a set software standard for many Linux systems (RHEL.
RPM package installation/upgrade/query/uninstall
An RPM package contains a compressed software file set and the content information of the software is saved in the header file), which is typically a file ending with a. rpm extension, such as package. rpm. You must use the rpm command to operate on it. The following describes the parameters and usage of the rpm tool, and describes how to install ibmlotus notes in RHEL5.2.
Common RPM Command Parameters
The general usage of RPM is rpm -? Package. rpm, where -? For operation parameters (for more information, see help $ manrpm ):
-Q: query the software or the content of the specified rpm package in the system
-I install software in the system
-U upgrades software in the system
-E uninstall software in the system
-H: Use the # (hash) character to display the rpm Installation Process
-V detailed installation process
-P indicates to query the RPM package, which is usually used together with other parameters, for example:
-Qlp: query the list of all files in an RPM package
-Qip: queries the content of an RPM package.
How to Use RPM Command Parameters
Some of the above parameters need to be used in combination, for example, the rpm-hpackage.rpm is meaningless, but the rpm-ihpackage.rpm means to install the package and the # symbol shows the installation progress.
Install the RPM package
# Rpm-ivhpackage.rpm
Upgrade RPM package command
# Rpm-Uvhpackage.rpm
Command for detaching an RPM package
# Rpm-evpackage
Command to query the file list contained in the RPM package
# Rpm-qlppackage
Command to query the file list contained in the RPM package
# Rpm-qlppackage
Command to query the content information contained in the RPM package
# Rpm-qippackage
All RPM packages installed in the query system
# Rpm-qa
RPM package management example
The following procedure describes how to install ibmlotus notesv85 (Notes. The RPM package for Notes is named ibm_lotus_notes-8.5.i586.rpm.
First, check whether the software already exists in the system.
# Rpm-qa | grepibm_lotus_notes
If the returned information is null, the software has not been installed.
Query the content of the Notes software package:
- #rpm-qipibm_lotus_notes-8.5.i586.rpm
- Name:ibm_lotus_notesRelocations:/opt/ibm/lotus/notes
- Version:8.5Vendor:IBM
- Release:20081211.1925BuildDate:Sat13Dec200809:38:55AMCST
- InstallDate:(notinstalled)BuildHost:dithers.notesdev.ibm.com
- Group:Applications/Office
- SourceRPM:ibm_lotus_notes-8.5-20081211.1925.src.rpm
- Size:603779427License:Commercial
- Signature:DSA/SHA1,Sat13Dec200809:43:02AMCST,KeyID314c8c6534f9ae75
- Summary:IBMLotusNotes
- Description:
- IBMLotusNotessoftwareprovidesarobust...
Install Notes:
# Rpm-ivhibm_lotus_notes-8.5.i586.rpm
Returned information:
- Preparing...###########################################[100%]
- 1:ibm_lotus_notes###########################################[100%]
Upgrade Notes:
If you need to upgrade to a later version of Notes (. 0-ibm_lotus_notes-9.0.i586.rpm) based on this version, use the-U parameter:
# Rpm-Uvhibm_lotus_notes-8.5.i586.rpm
If-I is used in this step, the system usually reports a file conflict error and cannot be installed properly.
Uninstall Notes
Note that the uninstall software uses the software name instead of the package file name:
# Rpm-evibm_lotus_notes or above is the RPM package installation/upgrade/query/uninstall.
- Command Introduction: Basic Linux commands for file and directory management
- Operation notes: Linux Desktop GNOME Operation Skills
- Linux File Installation and uninstallation
- 2010the Linux operating system is about to bloom
- Practical Operation Log: Install JDK in Linux