Oracle Linux, virtualization , Enterprise and Cloud Management Cloud technology musings

  • March 23, 2012

Setting up Oracle Linux 6 with the Oracle Linux Yum server for all updates

I just wanted to give you a quick example on how to get started with Oracle Linux 6 and start using the updates we published on http://yum.oracle.com.


  • Download Oracle Linux (without the requirement of a support subscription) from http://edelivery.oracle.com/linux.


  • Install Oracle Linux from the ISO or DVD image


  • Log in as user root
  • Download the yum repo file from http://yum.oracle.com


    # cd /etc/yum.repos.d
    # wget http://yum.oracle.com/public-yum-ol6.repo


  • If you want, you can edit the repo file and enable other repositories, I enabled [ol6_UEK_latest] by just setting enabled=1 in the file with a text editor.


  • Run yum repolist to show the registered channels and you see we are including everything including the latest published RPMs.

    Now you can just run yum update and any time we release new security errata or bugfix errata for OL6, they will be posted and you will automatically get them. It's very easy, very convenient and actually very cool. We do a lot more than just build OL RPMs and distribute them, we have a very comprehensive test farm where we test the packages extensively.

Join the discussion

Comments ( 12 )
  • Renaud Claeys Monday, April 2, 2012

    Thanks..That's what I needed !

  • Jose Valerio (Oracle Development) Friday, March 15, 2013

    It works perfect with 2.6.32-100.28.5.el6.x86_64. The first time that you run and depending of you internet speed it could take several minutes to build the repository.

    This system is not registered with ULN.

    ULN support will be disabled.

    ol6_UEK_latest | 1.2 kB 00:00

    ol6_UEK_latest/primary | 6.3 MB 00:13

    ol6_UEK_latest 148/148

    ol6_latest | 1.4 kB 00:00

    ol6_latest/primary | 26 MB 01:11

    ol6_latest 20898/20898

  • guest Sunday, June 2, 2013

    Many thanks. You may be surprised at how little documentation there is out there for Yum and Oracle Linux 6. I wish I'd found your page an hour ago.

  • FK Friday, July 19, 2013

    hi, I am getting following error while configuring oracle yum repository. please help?


    [root@534 sl]# cd /etc/yum.repos.d

    [root@534 yum.repos.d]# wget http://public-yum.oracle.com/public-yum-o16.repo

    --2013-07-19 09:30:44-- http://public-yum.oracle.com/public-yum-o16.repo

    Resolving public-yum.oracle.com...

    Connecting to public-yum.oracle.com||:80... connected.

    HTTP request sent, awaiting response... 404 Not Found

    2013-07-19 09:30:45 ERROR 404: Not Found.


  • Wim Coekaerts Friday, July 19, 2013

    You have a typo. you have o16 (oh one six) not ol6 (oh el six)

  • FK Monday, July 22, 2013

    Hi, thanks for pointing out the typo. I'm still getting following error... Please advise?


    [coroot@lt534 yum.repos.d]$ cd /etc/yum.repos.d/

    [coroot@lt534 yum.repos.d]$ wget https://public-yum.oracle.com/public-yum-ol6.repo

    --2013-07-23 08:52:43-- https://public-yum.oracle.com/public-yum-ol6.repo

    Resolving public-yum.oracle.com...

    Connecting to public-yum.oracle.com||:443... connected.

    HTTP request sent, awaiting response... 200 OK

    Length: 2778 (2.7K) [text/plain]

    public-yum-ol6.repo.1: Permission denied

    Cannot write to “public-yum-ol6.repo.1” (Success).


  • Wim Coekaerts Monday, July 22, 2013

    you have to be root. /etc/yum.repos.d is owned by root. also, it saves it as .1 that means there already is a .repo file for public-yum. I suggest you delete the existing one and then download the latest.

  • guest Monday, August 5, 2013

    Seklos !

    tried to upgrade ol5 to ol6 with this repo, but didn't work due to deps issues (mostly python abi related). So I threw away some useless pre-installed packages (wtf is kudzu anyway?) and told yum upgrade to --skip-broken, it was happy than.



  • guest Thursday, December 19, 2013

    When connecting to the public repo will you get any security data when using "yum --security check-update"? currenlty I am not and was wondering if this ability needs to come from OEM/

  • wim Friday, December 20, 2013

    it seems to work for me.

    yum --security check-update and

    yum updateinfo list cves

    etc... no need to use EM. as long as the yum-plugin-security rpm is installed

    or see https://blogs.oracle.com/linux/entry/updates_to_errata_on_uln

  • guest Thursday, September 18, 2014

    Even after updating the packages as describe above, I still see the issue complaining about libaio-0.3... compat-libstdc.... etc

  • Tom Robbins Wednesday, October 15, 2014

    I wish I'd found this years ago.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.