| Subcribe via RSS

Adding yum repositories on Linux Centos

February 3rd, 2008 Posted in System Administration


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.

8 Responses to “Adding yum repositories on Linux Centos”

  1. ridhocyber Says:

    bro aku agak pusing baca perintah perintah di atas…


  2. Markus Says:

    hehe.. memang perlu skill linux administration :)


  3. Paul Says:

    [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


  4. Markus Says:

    Hi Paul,

    does that RedHat repo will work on Centos?


  5. Denis Frolov Says:

    >does that RedHat repo will work on Centos?

    Yes, redhat-club repo work with CentOS 5.


  6. Denis Frolov Says:


  7. Maxim Says:

    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.


  8. Markus Says:

    Hey Maxim, thanks for pointing out the mistakes, I already fix it and it should be OK now.


Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word