Yum configuration file location

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.