zoukankan      html  css  js  c++  java
  • 在CentOS 7上安装常用的YUM源

    参考地址:https://blog.csdn.net/u010048823/article/details/51298183

    以epel源为例子,来讲解如何添加额外的YUM源。

    Extra Packages for Enterprise Linux (EPEL)

    一直不知道epel是什么意思,只知道安装它。上面是它的全称。

    一台服务器上,默认的YUM源可能会少很多包,所以我们要手动增加新的YUM源。

    1、查看初始状态的YUM源

    2、添加新的EPEL源

    https://fedoraproject.org/wiki/EPEL

    对于RHEL/CentOS 6:

    # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

    对于RHEL/CentOS 7:

    # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

    3、手动更新

    # yum makecache

    4、再次查看YUM源列表

    5、关于其他YUM源的添加

    参考地址:https://blog.itnmg.net/2012/09/17/centos-yum-source/

    添加Remi源

    rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

    rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

    添加RPMfoge源:

    http://repoforge.org/use/

    http://repository.it4i.cz/mirrors/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

    http://repository.it4i.cz/mirrors/repoforge/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

    添加 CentALT 源

    http://centos.alt.ru/

    添加php源

    rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

    rpm -Uvh http://mirror.webtatic.com/yum/el7/latest.rpm

  • 相关阅读:
    day2-元组 列表-赋值和深浅拷贝
    day1-bytes类型 三元运算 进制
    DAY02
    DAY02
    Python格式化、显示颜色
    DAY02
    DAY02
    DAY02
    DAY02
    DAY02
  • 原文地址:https://www.cnblogs.com/t-road/p/11328611.html
Copyright © 2011-2022 走看看