Parsing linux package Management and system updates
1.rpm is an open package management system that provides a way to quickly install software packages
2.rpm can not solve the package dependency very well, so yum.
Rpm command
3. Software package correlation
Rpm-ivh is commonly used to install rpm packages.
Rpm-Uvh is commonly used to upgrade the package.
Rpm-V verification package
The role of the 4.yum installation package
(1) provides a good way to solve the problem of dependency between software packages.
(2) yum is convenient to manage the update problems of a large number of systems
(3) multiple warehouses can be configured.
(4) concise configuration file
(5) easy to use
5. Configure the yum client update source
(1) there is a CentOS- Base.repo file in the / etc/yum.repos.d directory to set up the remote warehouse CentOS-Media.repo to set the local warehouse
(2) in the .repos file, repositoryid: specify a warehouse, name specify the warehouse name, baseurl: specify the URL of the warehouse, mirrorlist specify the image site of the warehouse, enable whether to enable this warehouse, gpgcheck check the GPG signature of the software package, gpgkey: specify the URL of the GPG signature file
Commands for the yum package
6. Speed up yum download
(1)
Vim / etc/yum.conf
(2)
Proxy= proxy ip: user name of the port proxy_username= proxy server proxy_password= proxy server password
7. Configure yum to let yum automatically select the fastest mirror server
Yum install yum-fastestmirror