RPM for CentOS software package management

Source: Internet
Author: User

Many people cannot understand what a software package management system is when they are most familiar with Linux. In fact, the software package management system in linux is a tool combination that automatically installs, configures, uninstalls, and upgrades software packages on a computer. It is somewhat similar to the control panel in windows.

In Linux distributions, almost every release has its own software package management system. Common deb Software Package dpkg and its front-end apt (applicable to debian, Ubuntu, etc ). Rpm and its front-end yum (applicable to RedHat systems ).

RPM, short for RPM Package Manager, is a software Package management system launched by Red Hat. It is now widely used in various releases.

The RRM package is a package file generated after the program source code is compiled and encapsulated. The package encapsulates the software's binary program, configuration file, help manual, library file, and header file. Shows the RPM package structure:

Install and uninstall the RPM software package:
# Rpm [options]/path/to/rpmfile

Option:
-I | -- install: install the specified software.
-V | -- verbose: displays the installation process.
-E | -- erase: uninstall the specified software.
-H | -- hash: the installation progress bar is displayed in the form of #, and the value of # is 2%.
-- Nodeps: Ignore dependency
-- Test: test installation
-U: Upgrade + installation (if there is a previous installation, it will be upgraded. If there is no previous installation, it will be installed)
-F: upgrade (if there is a previous installation, the upgrade will be performed. If there is no previous installation, no operation will be performed)
-- Replacepkgs: reinstall the Software Package
-- Force: When a file is installed or a software is installed
You can use the -- force option to force the installation, which is equivalent to -- replacepkgs -- replacefiles -- oldpackage.


Common Installation Options for software packages are:
# Rpm-ivh/path/to/rpmfile
# Rpm-Uvh/path/to/rpmfile


Example 1:

RPM Software Package Verification:
The RPM 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 the-K or -- checksig options to verify the source and integrity of the software package, -- nosignature indicates that source validity verification is not performed, and -- nodigest indicates that integrity verification is not performed.


Example 2:

Create your own rpm package

Directory structure and configuration after rpm installation in Linux

Brief Introduction and demo of rpm and yum

Redhat Linux --- rpm command details

  • 1
  • 2
  • Next Page

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.