Rookie's growth record--linux rpm

Source: Internet
Author: User

Rpm

What is RPM? RPM is the abbreviation for RPM Package Manager, which was first introduced by Redhat, and later with the development of RPM and added many features, gradually became the Linux accepted software package management standards. The vendors that support this format are Redhat Linux, SuSE Linux, and Mandriva Linux.

Advantages of RPM

RPM has the following advantages because RPM is a way to pre-compile and package the rpm file format for installation, and also to record the database.

1.RPM contains compiled programs and settings files and other data, can let users exempt from the problem of recompilation

2.RPM before being installed, will check the system's hard disk capacity, operating system version, etc., can avoid the wrong installation of files

The 3.RPM file itself provides information such as software version information, dependency property software name, software usage description, and documentation contained in the software for easy understanding of the software.

The 4.RPM management method uses the database to record the relevant parameters of the RPM file, which facilitates the upgrade, deletion, query and verification.

The RPM command is very powerful, so what exactly does the rpm command do?

1 querying the information for RPM packages installed on Linux systems

2 Query the RPM package installation file information

3 Installing the RPM package to the current Linux system

4 uninstalling the installed RPM package from the Linux system

5 upgrading RPM packages for current Linux systems

Commands and Parameters

(1) #rpm-qa The following parameters are used to view all RPM packages installed on the system

(2) #rpm-Q RPM Package name is used to see if the package has been installed in the system, and if it is installed, the system will display the full package name, and if not installed, the system will be prompted for "packages BAS is not installed". Cases:

650) this.width=650; "title=" KYRUSLGBW) 6wcr07be8v (]v.jpg "src=" http://s3.51cto.com/wyfs02/M02/3F/A9/ Wkiom1pl5vsxww24aaa3m-n8qls353.jpg "alt=" Wkiom1pl5vsxww24aaa3m-n8qls353.jpg "/>

This means that the software has been installed

650) this.width=650; "title=" t0ew4qmvyqq{v~]_0vu{0zw.jpg "src=" http://s3.51cto.com/wyfs02/M00/3F/A9/ Wkiol1pl5qmc3ecvaaaosuvk-ic214.jpg "alt=" Wkiol1pl5qmc3ecvaaaosuvk-ic214.jpg "/>

This means that SSH is not installed

(3) #rpm-qi RPM package name is used to view complete information about the RPM packages installed on the system, including the package version information, installation time and size, and so on. Cases:

650) this.width=650; "title=" dx}j$xjqp{h5]k55nzlm59g.jpg "src=" http://s3.51cto.com/wyfs02/M00/3F/A9/ Wkiom1pl5d2chkuiaae1wptld6u563.jpg "alt=" Wkiom1pl5d2chkuiaae1wptld6u563.jpg "/>

(4) #rpm-ql RPM package name is used to see where the package is installed. Cases:

650) this.width=650; "title=" 0o961vt}$5) r~a8a6{d0a[5.jpg "src=" http://s3.51cto.com/wyfs02/M00/3F/A9/ Wkiol1pl542cmxvsaadr18lmuke886.jpg "alt=" Wkiol1pl542cmxvsaadr18lmuke886.jpg "/>

(5) #rpm-QF file name is used to view a file installed using that RPM package. Cases:

650) this.width=650; "title=" fray[' 7i4 ' ~}~6$[mrtgu53.jpg "src=" http://s3.51cto.com/wyfs02/M02/3F/A9/ Wkiom1pl5ricvtliaaa6eag8_jo421.jpg "alt=" Wkiom1pl5ricvtliaaa6eag8_jo421.jpg "/>

(6) #rpm-qpi RPM package name and #rpm-qpl are used to view information for packages that are not installed, note the difference between (4) and (5).

(7) #rpm-IVH package name is used to install the RPM package, I represents the installation, V for visual installation, h for the installation of the display progress.

(8) #rpm-E RPM package name is used to remove the RPM package. The RPM-E--nodeps package name is used to remove a dependent package, which removes all packages that have dependencies on the package.

(9) #rpm-urpm package name is used to upgrade the RPM package.

(Ten) #rpm-UVH upgrade or install, if not installed, automatic installation, if the old version of the installation is automatically upgraded

(one) #rpm-FVH if the software is detected to be installed, the software is not installed, and if an older version is installed, it is only upgraded.

  executable parameter

                      representative meaning

-- Nodeps

use time:

danger: The reason the software is dependent is because it uses each other's mechanisms or functions, and if you force the installation without considering the property dependencies of the software, it may cause the software to become unusable

-- Replacefiles

use time:

danger:

-- replacepkgs

use time: Reinstall a software that has already been installed. If you want to install a bunch of RPM software files, you can use RPM–IVH *.rpm but if some software has been installed, the system will appear "a software to install" information, resulting in the inability to continue the installation, this parameter can be used to repeat the installation of

-- Force

use time: This parameter is actually--replacefiles and--replacepkgs complex

-- Test

use time: Want to test whether the software can be installed in the user's Linux environment, You can find out if there is an issue with attribute dependencies.

-- Justdb

use time: If the RPM database is corrupted or something is wrong, You can use this parameter to update information about the software within the database

-- Nosignature

-- Prefix new path

use time: When you want to install the software in a different informal directory. For example, if you want to install a software into a directory such as/usr/local rather than a regular/bin,/etc, you can use "-prefix/usr/local" to handle

--noscripts

Use time: Do not want the software to execute some system commands on its own during installation

Commonly used is these parameters, generally directly with-IVH, if the installation process found problems, the problem to find out to solve, do not use-force to force installation, because more problems will occur.

RPM Checksum digital certificate verification

Used to check whether the file attributes generated by the package installation have changed.

Rpm-v Package_name If the file contained in the software has been changed, it will be listed, if there is no information, congratulations, the software provided by the file has not been changed.

-va: List all files that may have been changed on the current system

-VP: List files that may have been altered within the software

-VF: Lists If a file has been altered

Cases:

650) this.width=650; "title=" ' Wkri9{}6p9_[0lxq{o~po2.jpg "src=" http://s3.51cto.com/wyfs02/M00/3F/AB/ Wkiom1pl6cotdnz-aaa_aaodej8461.jpg "alt=" Wkiom1pl6cotdnz-aaa_aaodej8461.jpg "/>

There is a C in front of the file name, and then there are some strange words, the C is the configuration, that is, the meaning of the set file. The previous 8 messages are:

S File size differs: whether the size of the file has been changed

M Mode differs (includes permissions and file type): whether the type of file or the properties of the files (rwx) have been changed, and if no parameters have been changed

5 Digest (formerly MD5 sum) differs:md5 The content of this kind of fingerprint code is different

D device Major/minor number mismatch: The primary/secondary code for the device has changed

L Readlink (2) path mismatch link: path has been changed

U User ownership differs: The owner of the file has been changed

G group ownership differs: The owning user group for the file has been changed

T MTime differs: Ask price your creation time has been changed

650) this.width=650, "title=" x_d]ez4sfhbryq@$ $B}sj1y.jpg "src=" http://s3.51cto.com/wyfs02/M02/3F/AB/ Wkiol1pl7bejitigaal18oqa6fq701.jpg "alt=" Wkiol1pl7bejitigaal18oqa6fq701.jpg "/>

A public key file with a digital certificate in the disc image appears with a random number, which we'll import

650) this.width=650; "title=" E7e_1ujfrfmzj98v51zu ' o2.jpg "src=" http://s3.51cto.com/wyfs02/M01/3F/AB/ Wkiol1pl7qgbq6xwaag6v5pn8rm020.jpg "alt=" Wkiol1pl7qgbq6xwaag6v5pn8rm020.jpg "/>

Import first, find PubKey, and then view pubkey information, if the actual query results, the import is successful

Check it out.

650) this.width=650; "Title=" J8kmunwly6tl9{]jm (uwu]5.jpg "src=" http://s3.51cto.com/wyfs02/M00/3F/AB/ Wkiom1pl7csbnrxhaabnab6a8zk077.jpg "alt=" Wkiom1pl7csbnrxhaabnab6a8zk077.jpg "/>

Prove the legality and integrity of the package OK, no validation prompts at installation

650) this.width=650; "title=") JO ' Toc6j2z6 (63i{23$o2p.jpg "src=" http://s3.51cto.com/wyfs02/M00/3F/AB/ Wkiom1pl7gfbavkxaacb9eudmwi193.jpg "alt=" Wkiom1pl7gfbavkxaacb9eudmwi193.jpg "/>

This article is from the "Fish" blog, please be sure to keep this source http://kyfish.blog.51cto.com/1570421/1440675

Rookie's growth record--linux rpm

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.