Centos 6.x更换Valut源 手动换源

本文介绍了如何在CentOS 6.x系统中手动更换Vault源,包括编辑CentOS-Base.repo文件,替换源内容,清除yum缓存,执行yum makecache,确保yum update能获取软件列表。同时提到了Debian系统类似操作。
摘要由CSDN通过智能技术生成

Centos 6.x更换Valut源 手动换源

如果是全新的系统没有wget或者是wget下载源失败的话,请自己手动换源
1、vi编辑/etc/yum.repos.d/目录下CentOS-Base.repo这个文件,直接把内容修改为源文件内容(直接复制过来即可)

vi /etc/yum.repos.d/CentOS-Base.repo

Centos官方

# 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-6.10 - Base - vault.centos.org
failovermethod=priority
baseurl=http://vault.centos.org/6.10/os/$basearch/
gpgcheck=1
gpgkey=http://vault.centos.org/RPM-GPG-KEY-CentOS-6
 
#released updates 
[updates]
name=CentOS-6
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值