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