Linux Repositories RPMforge EPEL (Centos Fedora RedHat)

=Install RPMforge=
 * Source pages
 * http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
 * http://wiki.centos.org/AdditionalResources/Repositories/
 * Recommend reading this too --> http://wiki.centos.org/PackageManagement/Yum/Priorities


 * Worked on Centos 6.4_x64


 * Install yum-plugin-priorities

yum install yum-plugin-priorities

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm

rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm


 * Update priority - see link http://wiki.centos.org/PackageManagement/Yum/Priorities
 * and update your repolist

yum update

yum repolist list

yum install htop

=Install EPEL and Remi repositories =
 * Source pages
 * http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x
 * http://rpms.famillecollet.com/

wget http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 rpm --import RPM-GPG-KEY-EPEL-6
 * 1) downloading and import EPEL GPG public keys

rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
 * 1) or import directly from website

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
 * 1) downloading EPEL repository

wget http://rpms.famillecollet.com/RPM-GPG-KEY-remi rpm --import RPM-GPG-KEY-remi
 * 1) downloading REMI GPG public keys

rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
 * 1) or import directly from the website

wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
 * 1) downloading REMI repository

rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
 * 1) Install EPEL and REMI repositories


 * 1) [user@localhost ]# rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
 * 2) Preparing...                ########################################### [100%]
 * 3)    1:epel-release           ########################################### [ 50%]
 * 4)    2:remi-release           ########################################### [100%]

Enable REMI and add priority
[user@localhost]# cd /etc/yum.repos.d/ [user@localhost yum.repos.d]# [user@localhost yum.repos.d]# vim remi.repo

[remi] name=Les RPM de remi pour Enterprise Linux 6 - $basearch mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror enabled=1 <--- CHANGED FROM 0 TO 1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi priority=13 <- ADDED THIS LINE
 * 1) change the enabled=0 to enabled=1
 * 2) add the line priority=13
 * 1) baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/

[remi-test] (...)

Change EPEL's priority
[user@localhost yum.repos.d]# vim epel.repo [epel] name=Extra Packages for Enterprise Linux 6 - $basearch mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 priority=12  <-- ADDED THIS LINE
 * 1) baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch

=Check repositories priorities=
 * RPMforce and yum-plugin-priorities were installed before

sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n

[user@localhost yum.repos.d]# sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n priority = 1 [base] priority = 1 [extras] priority = 1 [updates] priority = 11 [rpmforge] priority = 12 [epel] priority = 13 [remi] priority = 15 [google-chrome] [user@localhost yum.repos.d]#


 * if all looks good, you can process, update your packages and install what you need

yum clean all

yum update

yum repolist

[user@localhost yum.repos.d]# yum repolist Loaded plugins: fastestmirror, priorities, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.ukfast.co.uk * epel: be.mirror.eurid.eu * extras: mirror.sov.uk.goscomb.net * remi: remi-mirror.dedipower.com * rpmforge: be.mirror.eurid.eu * updates: mirror.sov.uk.goscomb.net 2083 packages excluded due to repository priority protections repo id                            repo name                                                                             status base                               CentOS-6 - Base                                                                             6,381 epel                               Extra Packages for Enterprise Linux 6 - x86_64                                        7,522+1,261 extras                             CentOS-6 - Extras                                                                              12 google-chrome                      google-chrome                                                                                   3 remi                               Les RPM de remi pour Enterprise Linux 6 - x86_64                                          208+807 rpmforge                           RHEL 6 - RPMforge.net - dag                                                              4,579+15 updates                            CentOS-6 - Updates                                                                            678 repolist: 19,383 [user@localhost yum.repos.d]#