Install yum and rpm in Linux

Source: Internet
Author: User

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)

  • 1
  • 2
  • Next Page
[Content navigation]
Page 1: RPM Page 1: YUM

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.