Linux RPM package management

A tool for packaging and installing Internet download packages, which is included in some Linux distributions. It generates files with .RPM extension. RPM is the abbreviation of RedHat Package Manager (RedHat Package Management Tool), similar to the setup.exe of windows. Although this file format name is marked with the RedHat logo, the concept is universal.
Linux distributions are adopted (suse, redhat, centos, etc.), which can be regarded as a recognized industry standard.

Query the list of installed rpm

rpm -qa|grep xx

Please check to see if firefox is currently installed on Linux.
rpm -qa|grep firefox

rpm -qa: query all installed rpm packages
rpm -qa | more [分页显示]

rpm -qa | grep X
rpm -qa | grep firefox

Query package information
rpm -qi package name
rpm -qi firefox

: Query files in the
software package rpm -ql package name
rpm -ql firefox

Query the software package to which the file belongs
rpm -qf file full path name
rpm -qf /etc/passwd
rpm -qf /root/install.log

Uninstall the rpm package:
basic syntax
rpm -e package name

Applications

  1. Remove firefox package
    rpm -e firefox

Force delete
rpm -e --nodeps 包名

Published 48 original articles · Likes0 · Visits 282

Guess you like

Origin blog.csdn.net/qq_44971387/article/details/105365221