zoukankan      html  css  js  c++  java
  • centos6 安装EPEL

    一、安装

    • 32位系统:

    rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-5

    • 64位系统:

    rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

    二、配置EPEL源设置(上海交大源)

    • 修改epel.repo
      vi /etc/yum.repos.d/epel.repo

    修改以下节点,注释所有mirrorlist配置项,添加新的baseurl

    
    [epel]
    
    baseurl=http://ftp.sjtu.edu.cn/fedora/epel/6/$basearch
    
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
    
    
    
    [epel-debuginfo]
    
    baseurl=http://ftp.sjtu.edu.cn/fedora/epel/7/$basearch/debug
    
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
    
    
    
    [epel-source]
    
    baseurl=http://ftp.sjtu.edu.cn/fedora/epel/6/SRPMS
    
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
    
    
    
    - 修改epel-testing.repo
    
    vi /etc/yum.repos.d/epel-testing.repo
    
    修改以下节点,注释所有mirrorlist配置项,添加新的baseurl
    
    [epel-testing]
    
    baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/6/$basearch
    
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-epel6&arch=$basearch
    
    
    
    [epel-testing-debuginfo]
    
    baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/6/$basearch/debug
    
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel6&arch=$basearch
    
    
    
    [epel-testing-source]
    
    baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/6/SRPMS
    
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel6&arch=$basearch
    
    
    • 重建缓存

    yum clean all && yum makecache

    三、安装插件

    yum install yum-plugin-fastestmirror

    yum install yum-priorities

  • 相关阅读:
    超图 wpf地图控件加载地图
    MySql常用内容
    超图资料下载与环境安装
    超图SampleCode运行须知
    英语感叹词
    英语之妻子,老婆
    Pycharm设置
    yizhihx ubuntu config
    Ubuntu之网易云音乐无法启动
    linux之错误输出重定向
  • 原文地址:https://www.cnblogs.com/lykyl/p/7843352.html
Copyright © 2011-2022 走看看