Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the common commands in RPM

Shulou Source: shulou.com Published: 2022-06-01 14:15:34 09月20日 Update

In this article, the editor introduces in detail "what are the common commands in RPM", which are detailed, the steps are clear, and the details are handled properly. I hope that this article "what are the common commands in RPM" can help you solve your doubts? let's follow the editor's train of thought to learn new knowledge.

RPM Package Manager (RPM) is a powerful command-line-driven package management tool for installing, uninstalling, verifying, querying, and updating software packages on Linux systems.

Install rpm-ivh package_name

(package_name refers to the file name of the RPM package)

Query

1. Query whether to install and install the version

Rpm-Q name of installed software (ex:rpm-Q docker-engine) rpm-qa | grep string (query the software version containing a string in all installed software)

two。 Query related configuration files

Rpm-ql software name (list the full file name where all files and directories of the software are located) rpm-qc software name (list all settings files of the software)

3. Query other software on which a software depends

Rpm-qR software name

4. Query which software package the file belongs to

Rpm-qf filename Uninstall rpm-e-- nodeps package_name verify the installed software name of rpm-V (list the configuration files that the software has been modified) rpm-Vf filename (list whether a file has been changed) fall back to the earlier version rpm-- Uvh-- oldpackage-- nodeps package_name

(this command includes two steps to uninstall the software package from the source environment and to install the earlier version of the package)

Backup tool rpmrebuild

Purpose: back up software that is already installed in the environment

Usage: rpmrebuild pacakge_name

If the relevant configuration of the software has been changed, the command asks whether to continue and whether to name a new software version name

If you do not need this query, you can use:

Rpmrebuild-b read here, this "what are the common RPM commands" article has been introduced, want to master the knowledge of this article still need to be hands-on practice to understand, if you want to know more related articles, welcome to follow the industry information channel.

Tags: Software files queries commands versions software packages file names commonly used articles configuration content backups characters strings tools steps environment proper powerful two Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi vpn macOS MySQL OPPO Reno