centos使用163 yum源
2015-01-07 14:08
337 查看
备份
# cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
修改
# vi /etc/yum.repos.d/CentOS-Base.repo
# yum clean all
# yum makecache #将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度
# yum install vim* #测试域名是否可用
开始更新系统:
# yum update
============================
注:CentOS使用yum update更新时不升级内核
cp /etc/yum.conf /etc/yum.confbak
方法一、修改yum的配置文件
# vi /etc/yum.conf 在[main]的最后添加 exclude=kernel*
方法二、直接在yum的命令后面加上如下的参数:
# yum --exclude=kernel* update
此文章转载于http://www.cnblogs.com/ikodota/p/centos_yum_163_repo.html
# cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
修改
# vi /etc/yum.repos.d/CentOS-Base.repo
# 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-$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 makecache #将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度
# yum install vim* #测试域名是否可用
开始更新系统:
# yum update
============================
注:CentOS使用yum update更新时不升级内核
cp /etc/yum.conf /etc/yum.confbak
方法一、修改yum的配置文件
# vi /etc/yum.conf 在[main]的最后添加 exclude=kernel*
方法二、直接在yum的命令后面加上如下的参数:
# yum --exclude=kernel* update
此文章转载于http://www.cnblogs.com/ikodota/p/centos_yum_163_repo.html
相关文章推荐
- CentOS 6.3 使用163 yum源
- 在centos架设yum源和使用163的源
- centos使用163 yum源
- CentOS 163 yum源使用
- RHEL6使用163网站CentOS的对应版本作为yum源
- Red Hat 5使用CentOS 163 yum源
- Centos更换yum源,使用国内163源
- 使用CentOS网易yum源(非原创,转载来自http://www.centos.bz/2011/11/centos-163-yum-repo/)
- 6、CentOS搭建本地Yum源以及使用163的Yum源
- CentOS配置本地yum源(使用镜像iso文件)
- RHEL5.4使用CentOS5.4的yum源
- centos使用光盘作为本地的yum源
- xen安装CentOS虚拟机(使用163镜像)
- 详解CentOS5.4设置使用rpmforge(packages.sw.be)yum源
- RHEL/CentOS 6.x使用EPEL6与remi的yum源安装MySQL 5.5.x
- CentOS使用北交大yum源
- RHEL X86_64 6.0使用CentOS6.0的yum源
- centos使用光盘作为本地的yum源--转载
- redhat中使用centos配置yum源
- RHEL5.4使用CentOS5.4的yum源