码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS 6.8yum源的配置

时间:2016-12-25 09:38:50      阅读:280      评论:0      收藏:0      [点我收藏+]

标签:.com   lin   key   gpg   配置   ase   ble   linu   mirror   

Centos配置163的yum源
1、首先备份当前系统的yum源
# mv /etc/yum.repo.d/Centos-Base.repo /etc/yum.repo.d/Centos-Base.repo.d.bak
2、在http://mirrors.centos.com/.html/下载相对应版本的repo文件,放入到/etc/yum.repo.d/
3、将CentOS6-Base-163.repo重命名为Centos-Base.repo
4、执行以下命令:
# yum clean all
# yum makecache
# yum update
2、在163源的基础上以pkgs.org配置第二yum源
# vim /etc/yum.repo.d/linuxtech.repo
[linuxtech] name=LinuxTECH baseurl=http://pkgrepo.linuxtech.net/el6/release/ enabled=1 gpgcheck=1 gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET

CentOS 6.8yum源的配置

标签:.com   lin   key   gpg   配置   ase   ble   linu   mirror   

原文地址:http://www.cnblogs.com/nxmydlp/p/6219031.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!