Linux rpm yum instructions and their usage
- 2021-08-17 01:46:42
- OfStack
Management of rpm packets
A package and installation tool for Internet download packages. It generates files with. RPM extension,
RPM is the abbreviation of RedHat Package Manager (RedHat package management tool), similar to setup. exe of windows
Simple Query Instructions for rpm Package
rpm �qa # 查询已安装的 rpm 列表
Basic format of rpm package name
1 rpm package name: firefox-45. 0.1-1.el6.centos.x86_64. rpm
firefox: Name
45.0.1-1: Version number
el6.centos.x86_64: centos6.X--64-bit
rpm Other Directives
rpm -q Package name # Check to see if it is installed
rpm -qi Package name # View package information
rpm -ql Package name # View the installation location of files in the package
rpm -qf Documents ( Such as :/etc/passwd) # To see which file belongs rpm Bag
Uninstall the rpm package
rpm -e 包名
Package dependency issues:
If other packages depend on the package you want to uninstall, an error message will be generated when uninstalling
rpm -e --nodeps 包名 # 强制删除
Install the rpm package
rpm-ivh RPM package full path name
i: install Installation
v: verbose Hint
h: hash Progress Bar
yum
Yum is an Shell front-end package manager. Based on RPM package management, RPM packages can be automatically downloaded and installed from specified servers, dependencies can be automatically handled, and all dependent packages can be installed at one time. The premise of using yum is that you can connect to the Internet. pip in Type python
Basic instruction
yum listgrep xx # Query for packages to install on the yum server
yum install xxx # Download and Install