配置CentOS6.5的yum源

摘要:
系统yum source(source,在英语存储库中,表示资源库;yum,全名YellowdogUpdater,Modified,是centos包管理器。基于RPM包管理,可以从指定的服务器自动下载并安装RPM包,可以自动处理依赖关系,并且可以一次安装所有依赖包。)的位置是/etc/yum。repos D/,系统默认为CentOS官方网站的来源。现在它被修改为网易163的源代码。修改步骤如下:输入云源代码的位置并备份原始的yum源代码:#cd/etc/yum。回购协议d#mvCentOS-Base.repoCentOS-Base.repo。bak下载163的源代码:#wgethttp://mirrors.163.com/.help/CentOS6-Base-163.repo#mvCentOS6数据库-163.repoCentOS-Base。repo下载并安装EPEL软件包:#wgethttp://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm#wgethttp://rpms.famillecollet.com/enterprise/remi-发布-6.rpm#rpm-ivhepel-Release-6-8.noarch。rpm#rpm-ivhremi-release-6.rpm修改remi配置文件:#vi/etc/yum。回购协议d/remi。repo将启用=0修改问题启用=1;设置#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/删除#before$basearch/;在镜像列表中=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch之前的#;保存,退出。

      系统yum源(源,英文repository,就是资源库的意思;yum,全称Yellow dog Updater, Modified,是centos的软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包。)的位置在/etc/yum.repos.d/,系统默认的是CentOS官网的源,现在修改为网易163的源,修改步骤如下:

  1. 进入yun源所在位置,将原来的yum源备份:
    #cd /etc/yum.repos.d
    #mv CentOS-Base.repo CentOS-Base.repo.bak

  2. 下载163的源:
    # wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
    #mv CentOS6-Base-163.repo CentOS-Base.repo

  3. 下载、安装EPEL(Extra Packages for Enterprise Linux)包:
    # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    #wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
    #rpm -ivh epel-release-6-8.noarch.rpm
    #rpm -ivh remi-release-6.rpm

  4. 修改remi配置文件:
    #vi /etc/yum.repos.d/remi.repo
    将enable=0修改问enable=1;
    将#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/前的#去掉;
    在mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch前加#;
    保存,退出。

  5. 重新建立缓冲:
    #yum clean all
    #yum makecache

  6. 更新yum:
    #yum update

--------------------------------------------------------------------------------------------------------------------------------------------

参考资料:

  1. CentOS6.5修改yum源:http://www.cnblogs.com/zhxin/p/3579190.html
  2. 在CentOS6.5上安装RHEL EPEL Repo:http://www.cnblogs.com/zhxin/p/3579190.html

免责声明:文章转载自《配置CentOS6.5的yum源》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇ruby中 Win32ole的各应用操作方法(word excel Outlook IE)Cesium添加自带的地形数据下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

rosdep update问题解决终极方法

转载:https://blog.csdn.net/weixin_42584917/article/details/114448355 最香的终极解决方法,虽然有点麻烦,可是必成功yyds raw.githubusercontent.com实际上就是github的用户数据服务器,rosdep程序下载的就是github.com/ros/rosdistro这个r...

fedora linux源代码下载

yumdownloader --source kernel 如果是下载insight 就是 yumdownloader --source insight 下载到的是当前目录. 然后在用rpm2cpio 生成 压缩文件 rpm2cpio insight-7.4.50-8.20120403cvs.fc17.src.rpm|cpio -idrpm2cpio 的使...

Docker 镜像加速

安装docker # yum -y install yum-utils device-mapper-persistent-data lvm2 # yum-config-manager -y --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo # yum -...

centos重装yum

入坑原因:执行了yum -y update(欲哭无泪) 一、 清除已有的应用与依赖 1、删除现有Python[root@test ~]# rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps ##强制删除已安装程序及其关联 [root@test ~]# whereis python |xargs...

yum安装程序报错:One of the configured repositories failed (Unknown),and yum doesn't have enough cached data to continue

使用yum按照程序报错如下: One of the configured repositories failed (Unknown), and yum doesn't have enough cached data to continue. At this point the only safe thing yum can do is fail. Th...

linux系统redhat7.9 安装R(编译安装)

查看系统: [root@rhel7 home]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.9 (Maipo) [root@rhel7 home]# hostnamectl Static hostname: rhel7 Icon name: c...