Rpm for linux learning and rpm for linux Learning

Source: Internet
Author: User

Rpm for linux learning and rpm for linux Learning

Currently, the two most common software installation methods are as follows:

1. dpkg

2. rpm

1. dpkg

It was first developed by the Debian Linux community. Through dpkg, the software provided by Debian can be easily installed, and the installed software information can also be provided,

It is really good, as long as it is derived from other Linux releases of Debian, most of them use the dpkg mechanism to manage software. Including B2D and Ubuntu.

2. RPM

It was first developed by Red Hat. Later, many distributions used this mechanism to install software, including Fedora, Centos, and SUSe.

Later, based on the dpkg mechanism, APT was developed for online installation and upgrade. RPM was developed by Red Hat's yum, SuSE's YOU, And Mandriva's urpmi Based on developers' differences.

RPM and SPRM

RPM is a set of management mechanisms for installing the software you need to your Linux system in a database record manner.

This feature is to compile and package the software you want to install as an RPM file, and record the software through the default database records in the packaged software.

Dependency Property software required for installation. When installed on your Linux host, the RPM first queries the Dependency Property software of the Linux host based on the data in the software.

If yes, It is installed. If yes, It is not installed. During installation, the software information is written to the RPM database.

Advantages:

1. The software has been compiled and packaged, so it is convenient to transmit and install the software (No compilation is required)

2. Because the software information is recorded in the RPM database of Linux, it is easy to query, upgrade, and install

Disadvantages:

1. Poor compatibility, cannot be transplanted, and the installed software and system are compatible.

 

SRPM:

Name it in ***. src. rpm. Source code

However, unlike the Tarball source code, it also contains dependency software descriptions required by the software and the data provided by all RPM files.

Unlike RPM, SRPM also provides the parameter configuration file (configure, makefile ).

SRPM software installation method:

1. Compile to rpm first

2. then install it in rpm Mode

 

RPM software format:

Re-pppoe: Software name

3.1: version. Version 3 is the primary version and Version 1 is the secondary version.

5: Number of compilations

I386: Operating System

 

RPM database:

To solve the dependency between software, RPM also adds some information login functions when providing the packaging software.

Version, package software author, other software with dependency attributes, functional description of the software, all file records of the software, etc.

Then, create an RPM software database on the Linux system. In this way, when you install a software provided in RPM format

During the installation process, RPM checks whether the relevant software already exists in the Database. If the database shows that the software does not exist, the RPM Software

Cannot be installed.

Disadvantage: This software cannot be installed when the dependent software is not installed.

RPM installation command

Rpm-I software name. rpm

Such as rpm-I rp-pppoe-3.5.32.1.i386.rpm

When rpm-ivh package_name is installed, the progress is displayed.

In addition, if we find a problem during the installation process, or we already know the problem will occur, and we still want to install the software, we can use

Mandatory installation of the following parameters:

 

RPM upgrade and update:

RPM query:

 

RPM uninstall:

Rpm-e Software name

When the software has a dependent package, it cannot be detached. Only related packages can be detached first.

Rebuilding an RPM Database

Rpm -- rebuilddb

 

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.