RPM package management

Source: Internet
Author: User

RPM package management

The full name of an RPM package is RPM package manager. It was first developed by RedHat, also known as RedHat Package Manager. Rpm packages are easy to install and manage. However, the RPM package attaches great importance to the dependency between software. If the dependency between software packages cannot be solved correctly, the RPM will refuse to install the software packages.

Rpm determines the installation, upgrade, uninstallation, and query of the current software package based on the files in the/var/lib/RPM/directory.

 

Package management in the Open Source world

Applicable to Debian/Ubuntu: dekg package management command, Apt-Get online upgrade command

Install

# Rpm-IVH/mnt/Server/fonts-chinese-3.02-12.noarch.rpm

# Rpm-IVH -- nodeps/mnt/Server/telnet-server-0.17-39.el5.i386.rpm // ignore dependency

# Rpm-IVH -- force/mnt/Server/telnet-server-0.17-39.el5.i386.rpm // force Installation

Uninstall

# Rpm-e fonts-Chinese

Upgrade

# Rpm/uvh/mnt/Server/bind-9.3.6.Pl.el5.i386.rpm

# Rpm-uvh -- oldpackage/mnt/Server/bind-9.3.3-10.el5.i368.rpm // force install old package

View

# Rpm-Q bind // query the Bind package

# Rpm-Qa | grep bind // query all bind packages

# Rpm-qf/etc/named. conf // query which package is installed in the file

# Rpm-QL bind // view Installed Package File Information

# Rpm-Qi bind // query installed package information

# Rpm-qpl/mnt/Server/bind-9.3.3-10.el5.i386.rpm // query uninstalled package file information

# Rpm-QPI/mnt/Server/bind-9.3.3-10.el5.i386.rpm // query uninstalled package information

Verify the package signature and correctness.

# Rpm -- import/mnt/RPM-GPG-KEY-* // import the RPM package signature information

Information is imported to the/etc/pki/rpm-GPG/directory.

# Rpm-k/mnt/Server/bind-9.3.3-10.el5.i386.rpm // check the key of the software package based on the RPM-GPG-KEY

# Rpm-V bind // check the correctness of the software package

# Rpm-va // check all software packages that may be modified

Output description:

S file capacity is changed by C configuration file (config file)
M file type or attribute changed D document (documentation)
5. the MD5 Signature is incorrect. The ghost file is not included by any software.
D. The master and sub-code change of the device l license file)
L link path change R readme file)
U file owner changed
G file group changed
T file creation time changed

This article was posted on the "system and security technology" blog!

RPM package management

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.