我是靠谱客的博主 苗条柚子,最近开发中收集的这篇文章主要介绍CentOS yum 增加搜狐源(mirrors.sohu.com),觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

# CentOS-Base.repo  
#  
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.   
# 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   
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os   
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/    
baseurl=http://mirrors.sohu.com/centos/$releasever/os/$basearch/    
gpgcheck=1    
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5   
 
#released updates       
[updates]    
name=CentOS-$releasever - Updates   
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates   
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/    
baseurl=http://mirrors.sohu.com/centos/$releasever/updates/$basearch/    
gpgcheck=1    
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5   
 
#packages used/produced in the build but not released    
[addons]    
name=CentOS-$releasever - Addons   
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons   
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/    
baseurl=http://mirrors.sohu.com/centos/$releasever/addons/$basearch/    
gpgcheck=1    
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5   
 
#additional packages that may be useful    
[extras]    
name=CentOS-$releasever - Extras   
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras   
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/    
baseurl=http://mirrors.sohu.com/centos/$releasever/extras/$basearch/    
gpgcheck=1    
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5   
 
#additional packages that extend functionality of existing packages    
[centosplus]    
name=CentOS-$releasever - Plus   
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus   
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/    
baseurl=http://mirrors.sohu.com/centos/$releasever/centosplus/$basearch/    
gpgcheck=1    
enabled=0    

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5



最后

以上就是苗条柚子为你收集整理的CentOS yum 增加搜狐源(mirrors.sohu.com)的全部内容,希望文章能够帮你解决CentOS yum 增加搜狐源(mirrors.sohu.com)所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(38)

评论列表共有 0 条评论

立即
投稿
返回
顶部