Centos Yum configuration file
CAT/etc/yum. conf
Cachedir =/var/Cache/yum
// Yum cache directory, where Yum stores the downloaded RPM package and database. The default value is/var/Cache/yum.
Keepcache = 0
// Whether the software package is retained after installation is complete. If the value 0 is not retained (the default value is 0), the value 1 is retained.
Debuglevel = 2
// Debug information output level, ranging from 0 to 10. The default value is 2.
Logfile =/var/log/yum. Log
// Yum log file location. You can query previous updates in the/var/log/yum. log file.
Pkgpolicy = newest
// Package policy. There are two options: Newest and last. If you set multiple repository and the same software exists in different repository, which one should Yum install, if it is newest, yum will install the latest version. If it is last, yum will sort the server IDs in alphabetical order and select the software installation on the last server. Generally, select newest.
Exclude = SELinux * // exclude some software from the upgrade list. You can use wildcards to separate each item in the list with spaces. This installation includes beautification packages, chinese patching is particularly useful.
Gpgcheck = 1 // there are two options: 1 and 0, which respectively indicate whether or not GPG (GNU private guard) verification is performed to determine whether the RPM package source is valid and safe. If it is set in the [main] section, it is valid for each repository. The default value is 0.
Ll/etc/yum. Repos. d
Configuration file for CentOS-Base.repo Yum network source
CentOS-Debuginfo.repo
Configuration file for CentOS-Media.repo Yum local source
CentOS-Vault.repo