Go deep into RPM package installation/upgrade/query/uninstall

Source: Internet
Author: User

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:

 
 
  1. #rpm-qipibm_lotus_notes-8.5.i586.rpm  
  2. Name:ibm_lotus_notesRelocations:/opt/ibm/lotus/notes  
  3. Version:8.5Vendor:IBM  
  4. Release:20081211.1925BuildDate:Sat13Dec200809:38:55AMCST  
  5. InstallDate:(notinstalled)BuildHost:dithers.notesdev.ibm.com  
  6. Group:Applications/Office  
  7. SourceRPM:ibm_lotus_notes-8.5-20081211.1925.src.rpm  
  8. Size:603779427License:Commercial  
  9. Signature:DSA/SHA1,Sat13Dec200809:43:02AMCST,KeyID314c8c6534f9ae75  
  10. Summary:IBMLotusNotes  
  11. Description:  
  12. IBMLotusNotessoftwareprovidesarobust... 

Install Notes:
# Rpm-ivhibm_lotus_notes-8.5.i586.rpm

Returned information:

 
 
  1. Preparing...###########################################[100%]  
  2. 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.

  1. Command Introduction: Basic Linux commands for file and directory management
  2. Operation notes: Linux Desktop GNOME Operation Skills
  3. Linux File Installation and uninstallation
  4. 2010the Linux operating system is about to bloom
  5. Practical Operation Log: Install JDK in Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.