RPM
Rpm is a software package manager.
Rpm: RedHat Package Manager. Definition: RPM Package Manager.
Annotation: a package and Installation tool used to download packages from the Internet. It is included in some Linux distributions. It generates a file with the. rpm extension.
RPM is the abbreviation of RedHat Package Manager (RedHat Package management tool). Although the file format name is marked with RedHat, its original design concept is open, now it includes OpenLinux, S. u. s. e. as well as distribution versions of Linux such as Turbo Linux have been adopted, it can be regarded as an industry standard.
The rpm file is the easiest to install in Linux. Taking the famous image processing software XV as an example, its rpm package xv-3.10a13.i386.rpm can be downloaded from the home page of the program.
The rpm package has a validation mechanism: the legitimacy of the source and the integrity of the software package. The Public Key provided by the official website must be imported for verification.
In Linux, the built-in public key is generally placed under/etc/pki/rpm-gpg/, and the public key with the suffix release is the public key. Without this public key, the public key with the suffix system name and version number is the public key.
Command to verify the legitimacy and integrity of rpm:
Rpm
-K
-- Checksig and-K use the same
-- Nosignature does not check validity
-- Nodigest does not detect integrity
There are five basic operations for rpm: installation, uninstallation, upgrade, query, and verification.
Components of the software package:
Binary program:/bin,/sbin,/usr/bin,/usr/sbin,/usr/local/bin,/usr/local/sbin
Library File:/lib,/usr/lib,/usr/local/lib
Configuration File:/etc
Help File: manual, README, INSTALL (/usr/share/doc /)
Parameters:
Specific parameters that can be used for query:
-A: Query all software packages installed by the system.
-F: The software package for file name query.
-Q: The software package name.
Output Format:
-I: displays the software package name, description, release, size, compilation date, installation date, and developer information.
-L display the files contained in the Software Package
-S: displays the current status of the file contained in the package. There are only two statuses: normal and missing.
-D: displays the documents in the software package (such as man, info, and README)
If the-v parameter is used, the output similar to ls-l can be obtained.
-V Verification
Common combined commands:
-Ivh installation package (-h: To # display the installation progress, each # represents 2%)
-Ql: Check whether the package is installed. If there is a package installation file after installation
-Qlp can view the files contained in this package without installing a package. However, you must enter the full name of the package.
-Qa can query a certain package. If you cannot remember the package name, you can also remember the part.
-Qi: query the detailed information of a package.
-Qip can view the information in this package even if a package is not installed. However, you need to enter the full name of the package.
-E. Uninstall the installation package.
-V verification package completion and correctness
Forcibly install the package
-- Force
Ignore dependency:
-- Nodeps (not recommended)
Test and install:
-- Test
Reinstall:
-- Replacepkgs
Database reconstruction:
-- Initdb: New
-- Rebuilddb: Rebuilding
Related reading:
RPM
Create your own RPM package
Directory structure and configuration after RPM installation in Linux
Brief Introduction and demo of RPM and yum
Install yum and RPM in Linux (2)
[Content navigation] |
Page 1: RPM |
Page 1: YUM |