Chapter23: Software Installation rpm,srpm and Yum (1)-RPM Software Management Program: RPM

Source: Internet
Author: User

RPM types of files will be associated with the software file where is the master? Still, where is the RPM database?

One. RPM Default installation path

After the software is installed, the relevant information is written to the database file in the/var/lib/rpm directory. The software version of the upgrade is also from the database, the query system data from the query.

So where do the files in the software go?

/etc Some settings where files are stored
/usr/bin Some executable files
/usr/lib Dynamic libraries used by some programs
/usr/share/doc Some manuals for software use
/usr/share/man Some mans page files

Two. Installation of RPM

RPM-IVH package_name

parameter is

I---the meaning of install

V---View detailed installation information

H---Display the installation progress in the installation Information Bar

Three. RPM Upgrades and updates

-UVH: If it is not, it will be installed.

-FVH: If the software is not installed in the original system, it will not be updated.

Four. RPM Query

The location of the query is/var/lib/rpm the database file in this directory. In addition, RPM can also query the information in the RPM files that are not installed.





(1) Find the file name of all files and directories in this software

Note where the files are located after installation

(2) Detailed information of the query software

(3) Query the software settings file (in/etc files only), and query the software's Help file (man file)

(4) Dependent software for querying software

(5) The file after the query is belong to the software

Five. RPM Offload (erase) and rebuild database

Unloading can only be done from the top down, where you can see that Pam (validation) is used by many software.

Due to the frequent installation of RPM files and so on, may result in the RPM database/var/lib/rpm file corruption, we can be rebuilt by the following command.

It looks like Root is the only line.

Chapter23: Software Installation rpm,srpm and Yum (1)-RPM Software Management Program: RPM

Related Article

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: 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.