从 https://www.tecmint.com/yum-thirdparty-repositories-for-centos-rhel/ 看到的,记录一下。
EPEL 是 Extra Packages for Enterprise Linux 的缩写(EPEL),是用于 Fedora-based Red Hat Enterprise Linux (RHEL) 的一个高质量软件源
运行下面命令启用EPEL仓库
# RHEL/CentOS 7 64-Bit ##
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -ivh epel-release-latest-7.noarch.rpm
# RHEL/CentOS 6 64-Bit ##
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
由于EPEL仓库可能会依赖某些来自optional和extras仓库的包,因此RHEL7上还需要启用这两个仓库
sudo subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"
REMI仓库提供了最新版本PHP相关的软件,不过在在启用REMI之前,需要先启用EPEL
CentOS/RHEL7
wget https://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo rpm -Uvh remi-release-7.rpm
CentOS/RHEL6
wget https://rpms.remirepo.net/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm
RPM Fusion同时提供了一些自由和非自由的软件,同样的它也需要先启用EPEL
CentOS/RHEL7
sudo yum localinstall -y --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
sudo yum localinstall -y --nogpgcheck https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
CentOS/RHEL6
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-6.noarch.rpm
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-6.noarch.rpm
ELRepo提供了一些硬件驱动相关的包
CentOS/RHEL7
sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
sudo rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
CentOS/RHEL6
sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
sudo rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
NUX-dextop提供了一些桌面和多媒体软件包,它也需要先启用EPEL仓库
CentOS/RHEL7
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
CentOS/RHEL6
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
CentOS/RHEL7
sudo rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm
CentOS/RHEL6
sudo rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el6.noarch.rpm
sudo rpm --import http://wiki.psychotic.ninja/RPM-GPG-KEY-psychotic
sudo rpm -ivh http://packages.psychotic.ninja/6/base/i386/RPMS/psychotic-release-1.0.0-1.el6.psychotic.noarch.rpm
IUS (Inline with Upstream Stable) 是一个新创立不久的由社区支持的第三方仓库,它提供了最新版的PHP,Python,MYSQL
IUS依赖于EPEL
CentOS/RHEL7
sudo rpm -Uvh https://centos7.iuscommunity.org/ius-release.rpm
CentOS/RHEL6
sudo rpm -Uvh https://centos6.iuscommunity.org/ius-release.rpm