执行如下命令:

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.old

vim /etc/yum.repos.d/CentOS-Base.repo   (粘贴下面的更新源地址,[小提示]vim粘贴方法:首先选中更新源地址内容,然后在vim中按下字母i进入编辑模式,然后点击鼠标中间,即可粘贴刚才选中的内容)

yum update

更新源地址如下:

[base]   
name=CentOS-6 - Base   
repo=os   
baseurl=http://mirrors.163.com/centos/6.4/os/$basearch/   
gpgcheck=1   
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6   
       
#released updates   
[update]   
name=CentOS-6 - Updates   
baseurl=http://mirrors.163.com/centos/6.4/updates/$basearch/   
gpgcheck=1   
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6   
       
#packages used/produced in the build but not released   
#[addons]   
#name=CentOS-6 - Addons   
#baseurl=http://mirrors.163.com/centos/6.4/addons/$basearch/   
#gpgcheck=1   
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6   
       
#additional packages that may be useful   
[extras]   
name=CentOS-6 - Extras   
baseurl=http://mirrors.163.com/centos/6.4/extras/$basearch/   
gpgcheck=1   
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6   
       
       
#additional packages that extend functionality of existing packages   
[centosplus]   
name=CentOS-6 - Plus   
baseurl=http://mirrors.163.com/centos/6.4/centosplus/$basearch/   
gpgcheck=1   
enabled=1   
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6   
       
#contrib - packages by Centos Users   
[contrib]   
name=CentOS-6 - Contrib   
baseurl=http://mirrors.163.com/centos/6.4/contrib/$basearch/   
gpgcheck=1   
enabled=0   
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 

centos 6.4 更新源地址的更多相关文章

  1. CentOS 使用 yum 更新软件包与系统

    1.CentOS 更新源配置文件说明 CentOS 6.5 更新源配置文件 /etc/yum.repos.d/CentOS-Base.repo 片段 [base] name=CentOS-$relea ...

  2. 国内老版本ubuntu更新源地址以及sources.list的配置方法

    在终端输入并运行 sudo apt-get install vimsudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份当前的源列 ...

  3. 老版本ubuntu更新源地址以及sources.list的配置方法 转

    转自(http://blog.csdn.net/snaking616/article/details/52966634) 1.国内可用的更新源地址: (1)中科大地址 http://mirrors.u ...

  4. 开启关闭Centos的自动更新(转)

    开启关闭Centos的自动更新 关闭Centos的自动更新,操作记录如下: [root@jwbdb alpha]# chkconfig –list yum-updatesd yum-updatesd  ...

  5. kali更新源地址更改

    问题: Hit:1 http://mirrors.ustc.edu.cn/kali kali-rolling InReleaseIgn:2 http://mirrors.ustc.edu.cn/kal ...

  6. CentOS 7 内核更新后删除旧内核(转载)

    CentOS 7 内核更新后删除旧内核 0.当前 # uname -sr Linux 3.10.0-123.20.1.el7.x86_64 1.搜索查询 # rpm -q kernel kernel- ...

  7. CentOS 6.5 更新163源(转载)

    From:http://www.cnblogs.com/buffer/p/3426908.html 众所周知,Centos 有个很方便的软件安装工具  yum,但是默认安装完centos,系统里使用的 ...

  8. Centos安装(更新)git(亲测有效)

    Centos 6.5默认安装的是git 1.7.X 版本,使用过程中会有一些奇怪的问题,对于用户名.密码支持不是很友好.将Centos6.5上的git更新到2.0.5,方法如下: 1.安装编译git时 ...

  9. Centos yum源更新为阿里云

    阿里云镜像网址 http://mirrors.aliyun.com/   更新步骤 1.备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d ...

随机推荐

  1. 【转】Android ListView长按事件触发点击事件

    原文网址:http://blog.csdn.net/twlkyao/article/details/17301609 算法在实现ListView的onItemLongClickListener的时候, ...

  2. VS2012/2013编辑器问题

    1. Visual Studio 2013 'Could not evaluate Expression' Debugger Abnormality 解决办法:http://weblog.west-w ...

  3. vue + vue-resource 跨域访问

    使用vue + vue-resource进行数据提交,后台使用RESTful API的方式存取数据,搞了一天,终于把后台搞好了.进行联合调试时,数据不能提交,报403错误: XMLHttpReques ...

  4. [Cycle.js] Making our toy DOM Driver more flexible

    Our previous toy DOM Driver is still primitive. We are only able to sends strings as the textContent ...

  5. IT痴汉的工作现状25-技术之养成

    要想成为技术大牛,除了天赋以外,更与后天的刻苦努力分不开.伟仔我天生愚顿.工作多年后仍与大牛相差甚远,更加觉得技术的养成是一个异常困难的过程. 是我不用功吗?我不这样觉得.伟仔尽管是个懒人,但对于技术 ...

  6. Codeforces 468B Two Sets 并查集

    题目大意:给出n个数,要求将n个数分配到两个集合中,集合0中的元素x,要求A-x也再0中,同理1集合. 写了几个版本号,一直WA在第8组数据...最后參考下ans,写了并查集过了 学到:1.注意离散的 ...

  7. IIS注册asp.net 4.0

    如果你是先装的VS后添加的IIS功能,那么你需要在ISS中注册NET Framework: 32位的Windows:------------------------------------------ ...

  8. ubuntu中安装Docker

    系统要求: 必须时64位的系统,内核最低要求是3.10 查看系统内核: $ uname -r 3.11.0-15-generic 获取最新版本打Docker: $ wget -qO- https:// ...

  9. Android -------- API等级

      API等级 Android版本 代号名称(基本上是按ABC命名排序的) 注释说明 1 Android 1.0     2 Android 1.1 Petit Four   3 Android 1. ...

  10. C#传值

    C#若不加限制传值时自带的类型为值传递,自创的类型为引用传递 using System; using System.Collections.Generic; using System.Linq; us ...