关于redhat系统yum源的配置2
关于redhat系统yum源的配置2
关于redhat系统yum源的配置2
(二)配置yum源(官方)
1、在终端输入以下命令(RHEL6/CentOS6)
[plain]
wget http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2
2、转换为刚才下载的文件目录
[plain]
cd /etc/yum.repos.d
如果是RHEL6的话ls一下,可以看到centos?codeblock=2文件
3、更改仓库名字
[plain]
mv centos?codeblock=2 CentOS-Base.repo
4、把CentOS-Base.repo里的$releasever改为6 命令:vim CentOS-Base.repo
5、清理yum
[plain]
yum clean all
6、生成缓存
[plain]
yum makecache
这样yum源就配置完成了。
评论暂时关闭