执行如下命令:

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. Ushare应用

    Ushare应用 Openwrt 系统功能强大,主要优势在于其开放性和可扩展性,Openwrt 安装ushare后,可将路由器变身为一个功能强大的家庭upnp流媒体服务器! 打开网上邻居,会显示发现u ...

  2. poj 2226 Muddy Fields(最小点覆盖+巧妙构图)

      Description Rain has pummeled the cows' field, a rectangular grid of R rows and C columns (1 <= ...

  3. Odometer使用JavaScript和CSS制作数字滑动效果

    Odometer是一个使用JavaScript和CSS技术,制作出数字上下滑动的动画效果插件,有点类似与我们的天然气的读数的动画效果,这个插件是轻量级的,压缩版本只有3kg,使用CSS3动画技术,所以 ...

  4. ashx实现文件下载以及文件MD5码测试

    cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using System ...

  5. matlab遗传算法

    function [xv,fv] = myGA(fitness, a, b, NP, NG, Pc, Pm, eps) % 用遗传算法求解一维无约束优化问题 % % 待优化的目标函数 fitness ...

  6. 【leetcode】Merge k Sorted Lists(按大小顺序连接k个链表)

    题目:Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity ...

  7. hdu4055 dp

    http://acm.hdu.edu.cn/showproblem.php?pid=4055 Problem Description The signature of a permutation is ...

  8. .NET基础拾遗(3)字符串、集合和流3

    三.流和序列化 3.1 流概念及.NET中常见流 无论什么信息,文字,声音,图像,只要进入了计算机就都被转化为数字,以数字方式运算.存储.由于计算机中使用二进制运算,因此数字只有两个:0 与 1,就是 ...

  9. Oracle游标cursor2显示的游标等

    --在一中我们介绍了实现过程 select *from stud; declare cursor mycur is select id,name from stud;--1声明 v_id intege ...

  10. String StringBuffer StringBuilder (转)

    转自:http://www.iteye.com/topic/522167 众所周知,String是由字符组成的串,在程序中使用频率很高.Java中的String是一个类,而并非基本数据类型. 不过她却 ...