YUM更换源(2)--更新Centos6.2 yum的163源
来源:互联网 发布:java sftp下载 编辑:程序博客网 时间:2024/04/30 23:54
# 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://mirrors.163.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#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://mirrors.163.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
完成以上保存退出,使用yum clean all,清空以前的yum 缓存,再yum makecache下,就可以了,如果需要安装其它的源,可手动添加,如增加RPMforge源:
rpm -ivh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
转载自:http://blog.chinaunix.net/uid-26204366-id-3205576.html
- YUM更换源(2)--更新Centos6.2 yum的163源
- centos6.5更换163的yum源
- centos6.2更新yum源
- centos6.2更新yum源
- centos6.2更新yum源
- centos6.2 更新yum源
- centos6.2更新yum源
- CentOS6.2更新yum源
- centos6.2更新yum源
- centos6.2更新yum源
- centos6.2更新yum源
- centos6.7更换yum源
- CentOS6.5更换yum源
- CentOS6.1更换yum光盘源
- centos6.3 更新yum 源
- CentOS6.5 更新yum源
- 更新centos6.5yum源
- Centos6.6 yum源更新
- 2013年科技行业五大看点(1)
- 二叉排序树向双向链表的转换
- 在公司的经验总结
- IOS之自定义UISwitch
- 成为一名优秀程序员所需要知道的那些事
- YUM更换源(2)--更新Centos6.2 yum的163源
- Android remake
- Win32串口编程
- 一个游戏程序员的学习资料
- 字符加密
- ASP.NET MVC2中Controller向View传递数据的方式
- 给桌面添加Gallery快捷图库
- 在linux网络UDP通信中,关于客户端是否绑定的理解
- C++ 初始化列表