rehl/centos安装epel源

 admin   2018-12-21 11:55   324 人阅读  0 条评论

Quickstart

You may retrieve signed binary configuration files from one the above two links (varying by the major release number of the installation target machine).  They may be automatically installed by root thus:

  • 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
  • on RHEL 7 it is recommended to also enable the optional and extras repositories since EPEL packages may depend on packages from these repositories:

   # subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"

您可以从以上两个链接中的一个链接中检索已签名的二进制配置文件(根据安装目标计算机的主要版本号而不同)。它们可以由root自动安装,因此:

  • 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
  • 在RHEL 7上,建议还启用可选和附加存储库,因为EPEL包可能依赖于来自这些存储库的包:

   #subscription-manager repos --enable“rhel  -  *  -  optional-rpms”--enable“rhel  -  *  -  extras-rpms”


本文地址:https://liuchunjie.top/?id=68
版权声明:本文为原创文章,版权归 admin 所有,欢迎分享本文,转载请保留出处!

 发表评论


表情

还没有留言,还不快点抢沙发?