zoukankan      html  css  js  c++  java
  • Ansible之安装-使用aliyun的epel源

    Epel 镜像

    简介

    EPEL (Extra Packages for Enterprise Linux), 是由 Fedora Special Interest Group 维护的 Enterprise Linux(RHEL、CentOS)中经常用到的包。

    配置方法

    1. 备份(如有配置其他epel源)
    `mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
    mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup` 
    2. 下载新repo 到/etc/yum.repos.d/

    epel(RHEL 8)
    1)安装 epel 配置包

    `yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm` 

    2)将 repo 配置中的地址替换为阿里云镜像站地址

    `sed -i 's|^#baseurl=https://download.fedoraproject.org/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*
    sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*` 

    epel(RHEL 7)

    `wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo` 

    epel(RHEL 6)

    `wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo` 

    epel(RHEL 5)

    `wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo` 

    相关链接

    =======================================================================

    知识无边界,交流以长进

    如需转载,请注明出处,谢谢

    =======================================================================

  • 相关阅读:
    继承
    rpm使用
    weblogic报outOfMemory
    linux能访问外网但ping不通百度
    zookeeper启动异常问题
    Oracle查看表的变动信息
    Linux创建、删除软链接
    zookeeper开机自启
    linux中oracle自启动
    Weblogic命令模式安装
  • 原文地址:https://www.cnblogs.com/mfyang/p/15161325.html
Copyright © 2011-2022 走看看