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
- Remove firefox package
rpm -e firefox
Force delete
rpm -e --nodeps 包名