Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the rpm command of the Linux system

Shulou Source: shulou.com Published: 2022-06-01 21:20:36 10月03日 Update

This article mainly analyzes the relevant knowledge of what the rpm command of the Linux system is, the content is detailed and easy to understand, the operation details are reasonable, and has a certain reference value. If you are interested, you might as well follow the editor to have a look, and follow the editor to learn more about "what is the rpm command of the Linux system".

Rpm, used for the management suite, was originally a Red Hat Linux distribution program designed to manage Linux suites. It is popular because it follows GPL rules and is powerful and convenient.

Rpm-a

Rpm-Q interpretation: query whether a package is installed

Rpm-qa

Rpm-qa-Q query all suites using query mode (query)-a (all) interpretation: list all installed rpm package

The difference with rpm-an is that it has been, for example:

Rpm-qa | grep

Rpm-qa | grep xxx | Pipeline technology. Delete means grep search-A text search tool: search for xxx in the information returned by-qa and return it as the final result

Rpm-qa | grep-I xxx-I is not case-sensitive to xxx. Of course, as a search tool, grep can also be combined with other commands

Rpm-e-requires careful "uninstall"

Normally, when uninstalling, we use the

Rpm-e xxx but if the software yyy is "dependent" on xxx-that is, yyy must have xxx to run

Will return

Error: xxx is needed by yyy can forcibly delete ↓ at this time without checking for dependencies (with caution)

Rpm-e-nodeps in addition, if you query that there are several packages with the same name, you can ignore the dependency and delete all packages with the same name using the following command

Rpm-e-- allmatches-- nodeps of course, deletions and queries can actually be combined, such as

Rpm-e-nodeps' rpm-qa | problems that grep mysql' may encounter

Warning: / etc/yum.repos.d/mysql-community.repo saved as / etc/yum.repos.d/mysql-community.repo.rpmsave

The cause of the problem is temporarily unknown. I don't know why it is automatically saved as .repo.rpmsave. The solution is to change it to the original .repo format with the mv command.

This is the end of the introduction on "what is the rpm command of the Linux system". More related content can be searched for previous articles, hoping to help you answer questions and questions, please support the website!

Tags: Commands queries systems suites search content tools knowledge follow problem management combination powerful same value interest function powerful reason original Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia MariaDB Xiaomi MySQL vpn