You’ll have almost every CentOS package you could ever need with a few additional community run package repositories. Here’s instructions for installing three of the more popular ones: RPMForge, EPEL, and Elrepo.
# Install RPMForge’s Yum GPG Key for verifying packages are actually from RPMForge:
rpm –import http://apt.sw.be/RPM-GPG-KEY.dag.txt
# Install the actual RPMForge package which adds the repo to your system
rpm -i ‘http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm’
# Install EPEL’s GPG key for package verification:
rpm –import ‘http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6’
# Install the actual EPEL Repo:
rpm -i ‘http://fedora.mirror.nexicom.net/epel/6/i386/epel-release-6-8.noarch.rpm’
# Install Elrepo’s GPG key for package verification:
rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
# Install the actual Elrepo Repo:
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
Now you can run
yum list to see all the new packages you have! Filter packages to each repository by doing commands like
yum list --disablerepo=* --enablerepo=rpmforge.
- Disable all repos by default to avoid update conflicts between repos. Perform yum updates on each repo manually to be safe.
- Try the Yum Priorities plugin if you want to keep them enabled. It gives you a way to resolve conflicts by choosing packages from a higher priority (lower priority number) repo.
1 thought on “How to Install Third Party Repositories on CentOS”