Linux CentOS下EPEL源的安装

    xiaoxiao2022-06-22  18

    什么是EPEL源:

    EPEL是yum的一个软件源,包含许多基本源里没有的软件,安装了EPEL就扩展了yum软件源。

    实验环境:

    CentOS 6.5

    安装步骤:

    step 1:安装yum优先级插件

    yum install yum-priorities

    step 2:安装epel源

    rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -q epel-release

    step 3:导入key

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

    step 4:修改epel.repo文件,位置为/etc/yum.repos.d/epel.repo,在[epel]最后添加priority=11,作用是设置yum查询源的优先级为先官方后epel

    vi /etc/yum.repos.d/epel.repo

    step 5:重建缓存

    yum makecache
    转载请注明原文地址: https://ju.6miu.com/read-1122661.html

    最新回复(0)