首页 > 其他 > 详细

Centos 6.3 Yum源安装

时间:2014-04-02 20:48:42      阅读:653      评论:0      收藏:0      [点我收藏+]

多余的话不说了,直接进入主题;

1、卸载系统自带的yum源

  #rpm -qa |grep yum |xarges rpm -e --nodeps yum

2、下载rpm 相关安装包(可以google中搜索)

   1)python-iniparse-0.3.1-2.1.el6.noarch.rpm

   2)yum-3.2.29-30.el6.centos.noarch.rpm

   3)yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

   4)yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

3、安装

  #rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm

  #rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

  #rpm -ivh yum-3.2.29-30.el6.centos.noarch.rpm  yum-plugin-fastestmirror-1.1.30-            14.el6.noarch.rpm

   如下图所示:

       bubuko.com,布布扣

4、yum配置文件

  #vim /etc/yum.repos.d/CentOS-Base.repo

   

    # CentOS-Base.repo

[base]

name=CentOS-6 - Base - 163.com

baseurl=http://mirrors.163.com/centos/6/os/$basearch/

#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os

gpgcheck=1

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#released updates

[updates]

name=CentOS-6 - Updates - 163.com

baseurl=http://mirrors.163.com/centos/6/updates/$basearch/

#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates

gpgcheck=1

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful

[extras]

name=CentOS-6 - Extras - 163.com

baseurl=http://mirrors.163.com/centos/6/extras/$basearch/

#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras

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 - 163.com

baseurl=http://mirrors.163.com/centos/6/centosplus/$basearch/

#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus

gpgcheck=1

enabled=0

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users

[contrib]

name=CentOS-6 - Contrib - 163.com

baseurl=http://mirrors.163.com/centos/6/contrib/$basearch/

#mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=contrib

gpgcheck=1

enabled=0

gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6


5、清理之前的yum缓存

  #yum clean all

6、查看安装结果

  #yum list

  如下图所示:

    bubuko.com,布布扣


7、安装成功;


转载请说明来源,我分享我开心,共同成长!!!


















 

Centos 6.3 Yum源安装,布布扣,bubuko.com

Centos 6.3 Yum源安装

原文:http://1243047.blog.51cto.com/1233047/1389213

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!