RPM management package for Linux

Time:2022-5-6
#Install package
rpm -ivh zsh-5.5.1-6.el8.x86_64.rpm

#Check whether the installation is successful
rpm -q zsh

#View the list of installed files
rpm -ql zsh
#Uninstall package
rpm -e zsh

#Ignore dependencies uninstall package
rpm -e zsh --nodeps

#Check whether the uninstallation is successful
rpm -q zsh
#Upgrade or install the software package. If it is not installed, it will be installed automatically
rpm -Uvh xxx.rpm

#Only upgrade the software package. If it is not installed, it will not be upgraded
rpm -Fvh xxx.rpm
#View all installed packages
rpm -aq
rpm -aq|grep xxx

The RPM installation software package needs to solve the software dependency by itself.