1) Management rpm package
Internet download package for packaging and installation tool, he is included in some Linux distributions. He generates a file with the extension of .RPM. RPM is an acronym for RedHat Manager (Red Hat Package Manager tool), similar to the Windows setup.exe, this file format, although marked by signs RedHat, but the concept is universal. The Linux distributions are used (suse, redhat, centos), it can be regarded as the accepted industry standard.
2) simple query command rpm package:
Query list of installed rpm: rpm -qa | grep xx
For example: query about the current Linux has not been installed Firefox:
①, the basic format of the rpm package name:
firefox-52.2.0-2.el7.centos.x86_64
Name: firefox
Version: 52.2.0-2
Applicable OS: el7.centos.x86_64
Other queries instruction ②, rpm package
rpm -qa: query all installed rpm installation package
rpm -qa | more: Pagination
rpm -qa | grep X: is the way the above query a specific installation package
rpm -qi package names: package information inquiries
rpm -ql Package name: query files in the package, this command can also be used to view files installed gone
rpm -qf the full path to the file: query software package installation file belongs
3) Uninstall rpm package
Name rpm -e rpm package
Case: Remove the Firefox package
Note: If you depend on other software to uninstall the software installation package, will generate an error message when uninstalling
Such as: rpm -e foo
提示:removing these packages would break dependencies:foo is needed by bar-1.0-1
If you want to forcibly remove: rpm -e --nodeps foo plus --nodeps on the line
4) Installation rpm package
The full path name of the rpm -ivh rpm package
i = install mounted v-verbose prompts h = hash progress bar
Case: install firefox
①, first find firefox installed rpm package, we need to mount on centos install iso file, and then proceeds to mount this image file corresponding directory, you will find below a Package directory there will save a lot of rpm package .
②, find firefox installation package, after finding copied to / opt / directory, because most do not drive at installation, so you want to copy out
③, switch to opt directory
④, installation
Can be reused rpm -qa | grep firefox make sure to complete the installation.
5) yum [common]
Yum Shell is a front end package manager, based rpm package management, from a specified server and automatically download rpm package installation may be automatically handle dependencies, and one-time installation of all dependent packages. Use yum premise that can be networked.
①, once again uninstall Firefox
rpm -e firefox
②, see the yum server has no firefox rpm package
③, installation
④, check the installation
Also intimate installed the latest version.