RPM Software Package Operation Guide

  
in CentOS System

In Linux system operation, common software package management systems include RPM and YUM. They can be used to manage Linux systems. Today, Xiaobian is going to introduce you to the CentOS system. The management of the RPM package, interested friends can come to understand.

In Linux distributions, almost every distribution has its own package management system. Common are the dpkg of the deb package and its front-end apt (for debian, Ubuntu, etc.). Rpm and its front end yum (for RedHat series systems).

RPM, the full name RPM Package Manager, is a package management system from Red Hat that is now widely available in various distributions.

The RRM package is a package file that is compiled and packaged by the program source code. The package contains the software binary, configuration files, help manuals, library files, and header files. RPM package structure shown below:

RPM package installation and uninstallation:

# rpm [options] /path /to /rpmfile

option :

-i| --install: install the specified software

-v| --verbose: shows the installation process

-e| --erase: Uninstall the specified software

-h| --hash: Display the progress bar in #, one #2%

--nodeps: ignore dependencies

--test: test install

- U: Upgrade + installation (if you have previously installed, upgrade, if not installed before)

-F: Upgrade (if you have previously installed, upgrade, if you have not installed before, do nothing)

--replacepkgs: Reinstall the package

--force: During the installation or upgrade of the package, if a file has been installed or a certain software has been installed

You can use the --force option to force installation, equivalent to --replacepkgs --replacefiles --oldpackage use

Common package installation options are:

#rpm -ivh /path /to /rpmfile

# rpm -Uvh /path /to /rpmfile

example 1:

RPM package verification:

RPM The package uses the gpg asymmetric encryption mechanism to verify the integrity of the package and the legitimacy of the source.

# rpm --import PUBKEY: rpm uses --import to import the public key created by the package provider, which can automatically verify the package.

#rpm {-K| --checksig} [--nosignature] [--nodigest] PACKAGE_FILE: rpm can use -K or --checksig option to verify the source and integrity of the package, --nosignature option means no source legality verification, --nodigest option means no integrity verification

Example 2:
Previous123Next page Total 3 pages

Copyright © Windows knowledge All Rights Reserved