In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail the example analysis of the Yum source configuration file in linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
/ etc/yum.conf file
[main]
Cachedir=/var/cache/yum/$basearch/$releasever
Keepcache=0
Debuglevel=2
Logfile=/var/log/yum.log
Exactarch=1
Retries=6
Obsoletes=1
Gpgcheck=0
Plugins=1
Installonly_limit=5
Bugtracker_url= http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.ph
P?category=yum
Distroverpkg=centos-release
# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. Important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in / etc/yum.repos.d
/ etc/yum.repos.d/yum.repo file
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
Name=CentOS-$releasever-Base-163.com
Baseurl= http://mirrors.163.com/centos/$releasever/os/$basearch/
# mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
Gpgcheck=1
Gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
# released updates
[updates]
Name=CentOS-$releasever-Updates-163.com
Baseurl= http://mirrors.163.com/centos/$releasever/updates/$basearch/
# mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
Gpgcheck=1
Gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
# additional packages that may be useful
[extras]
Name=CentOS-$releasever-Extras-163.com
Baseurl= http://mirrors.163.com/centos/$releasever/extras/$basearch/
# mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
Gpgcheck=1
Gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
# additional packages that extend functionality of existing packages
[centosplus]
Name=CentOS-$releasever-Plus-163.com
Baseurl= http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
# mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
Gpgcheck=1
Enabled=0
Gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
# contrib-packages by Centos Users
[contrib]
Name=CentOS-$releasever-Contrib-163.com
Baseurl= http://mirrors.163.com/centos/$releasever/contrib/$basearch/
# mirrorlist= http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
Gpgcheck=1
Enabled=0
Gpgkey= http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
This is the end of this article on "sample analysis of Yum source configuration files in linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.