How to add additional repositories to CentOS/RHEL (EPEL, …)

  • Extra Packages for Enterprise Linux EPEL: rebuilds of Fedora packages for EL
## EPEL is included on CentOS extras, so for CentOS just
$ yum install -y epel-release

## for RHEL
$ cat /etc/yum.repos.d/epel-bootstrap.repo
name=Bootstrap EPEL
$ yum --enablerepo=epel -y install epel-release
$ rm -f /etc/yum.repos.d/epel-bootstrap.repo

# import GPG key
$ export $V=`rpm -q --queryformat '%{VERSION}' $(rpm -qa '(redhat|sl|centos|raclelinux)-release(|-server|-workstation|-client|-computenode)')`
$ sudo sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$V

$ yum repolist
  • The Community Enterprise Linux Repository ELRepo: kmod driver packages to enhance hardware support. Newer kernels are also available
$ rpm --import

$ rpm -Uvh
$ rpm -Uvh
$ rpm -Uvh
$ rpm -qa|grep redhat-|xargs rpm -e

$ rpm --import
$ rpm -Uvh{centos-release-7-0.1406.el7.centos.2.3.x86_64.rpm,centos-logos-70.0.6-1.el7.centos.noarch.rpm}

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s