Adding yum repositories on Linux Centos
Warning: while this configuration work on my system, it might be not working on yours, so be careful and use it at your own risk! Normally you wont need these third party repo, so only use this repo if you are know what you are doing or you specifically need the software in the repo which is not available in the official repository.
On default Centos installation, your OS will have a few yum repositories which are the official Centos repo. To add additional 3rd party repositories you can modify your /etc/yum.conf and add these configurations:
[dries] name=Extra CentOS rpms dries - $releasever - $basearch baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/redhat/el$releasever/en/$basearch/dries/RPMS/ gpgcheck=1 enabled=1 [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 [kbs-CentOS-Extras] name=CentOS.Karan.Org-EL$releasever - Stable gpgcheck=1 gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt enabled=1 baseurl=http://centos.karan.org/el$releasever/extras/stable/$basearch/RPMS/ [kbs-CentOS-Misc] name=CentOS.Karan.Org-EL$releasever - Stable gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt gpgcheck=1 enabled=1 baseurl=http://centos.karan.org/el$releasever/misc/stable/$basearch/RPMS/ [kbs-CentOS-Misc-Testing] name=CentOS.Karan.Org-EL$releasever - Testing gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt gpgcheck=1 enabled=1 baseurl=http://centos.karan.org/el$releasever/misc/testing/i386/RPMS/ [atrpms] name=CentOS $releasever - $basearch - ATrpms baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms gpgcheck=1 enabled=0
To use the above repositories, you need to add their GPG key for authentication (as root):
# rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt # rpm --import http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt # rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms
Update: I disabled the atrpms repository as Centos wiki said that it contains beta softwares that might broke your system.
February 4th, 2008 at 3:54 pm
bro aku agak pusing baca perintah perintah di atas…
February 5th, 2008 at 11:31 am
hehe.. memang perlu skill linux administration
August 27th, 2008 at 10:05 am
[redhatclub-repository]
name=Red Hat Club Repository - $basearch
baseurl=http://repo.redhat-club.org/redhat/5/$basearch
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RedHatClub-Repository
[redhatclub-repository-devel]
name=Red Hat Club Repository devel - $basearch
baseurl=ftp://redhat-club.org/repository/devel/redhat/5/i386/
enabled=1
August 28th, 2008 at 12:37 am
Hi Paul,
does that RedHat repo will work on Centos?
September 3rd, 2008 at 7:58 pm
>does that RedHat repo will work on Centos?
Yes, redhat-club repo work with CentOS 5.
September 3rd, 2008 at 8:01 pm
redhat-club repository work with EPEL
to install run
rpm -ihv http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm http://repo.redhat-club.org/redhat/5/i386/redhatclub-repository-release-5-2.el5.rhc.noarch.rpm
October 8th, 2008 at 2:49 am
This is not good advice. You are mixing CentOS and Fedora repositories…
And the 1st line:
baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/redhat/el4/en/i386/dries/RPMS
would only work for CentOS 4, on a x86 system.
Please follow the docs on the official CentOS wiki.
October 8th, 2008 at 3:39 am
Hey Maxim, thanks for pointing out the mistakes, I already fix it and it should be OK now.