This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12139|Reply: 1

[linux] Linux rpm command explained in detail

[Copy link]
Posted on 9/27/2018 2:48:38 PM | | | |
The rpm command is a management tool for RPM packages. rpm was originally a program used by Red Hat Linux distributions to manage Linux packages, and it was popular because it followed GPL rules and was powerful and convenient. Gradually adopted by other distributions. The emergence of RPM package management methods makes Linux easy to install and upgrade, which indirectly improves the applicability of Linux.



grammar

rpm (Options) (Parameter)

options



1. I have those rpm software packages installed in my system.


If you want to find all the installedA package that contains a certain string SQL


2. How to obtain the full file name of a software package.


You can get the full name of the mysql package installed in the system, from which you can get information such as the version of the current package. In this example, you can get the information mysql-3.23.54a-11

3. Where is the file in an rpm package installed?


Note that the names of packages that do not include the .rpm suffix here are the names of packages, which means that only mysql or mysql-3.23.54a-11 can be used instead of mysql-3.23.54a-11.rpm.If you just want to know where the executable went to, you can also use whichLike what:


4. An rpm package contains those files.


5. How to obtain relevant information about the version, purpose and other relevant information of a software package?


6. Which package installs a certain program, or which package contains this program.


Note that this is not a quote, but ', which is the key in the upper left corner of the keyboard. rpm -qilf can also be used to output both package information and a list of files.

7. Which software package installed a certain file, or which software package contains this file.

Note that the method in the previous question is only applicable to executable programs, while the following method can be used not only for executable programs, but also for ordinary files. Provided that this file name is known. First get the full path to this program, either whereis or which, and then use rpm -qf for example:







Previous:Linux yum command explained in detail
Next:docker container to view the container linux version
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com