Setting up Oracle Linux 6 with public-yum 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://public-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://public-yum.oracle.com

    # cd /etc/yum.repos.d
    # wget http://public-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.

  • Comments:

    Thanks..That's what I needed !

    Posted by Renaud Claeys on April 01, 2012 at 08:18 PM PDT #

    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

    Posted by Jose Valerio (Oracle Development) on March 14, 2013 at 09:39 PM PDT #

    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.

    Posted by guest on June 01, 2013 at 07:16 PM PDT #

    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... 137.254.56.43
    Connecting to public-yum.oracle.com|137.254.56.43|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2013-07-19 09:30:45 ERROR 404: Not Found.
    ==========================================================

    Posted by FK on July 19, 2013 at 09:38 AM PDT #

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

    Posted by Wim Coekaerts on July 19, 2013 at 09:42 AM PDT #

    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... 137.254.56.43
    Connecting to public-yum.oracle.com|137.254.56.43|: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).
    =============================================================

    Posted by FK on July 22, 2013 at 08:59 AM PDT #

    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.

    Posted by Wim Coekaerts on July 22, 2013 at 09:02 AM PDT #

    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.

    grtz,
    Djeezus

    Posted by guest on August 05, 2013 at 05:19 AM PDT #

    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/

    Posted by guest on December 19, 2013 at 08:55 AM PST #

    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

    Posted by wim on December 20, 2013 at 10:44 AM PST #

    Post a Comment:
    • HTML Syntax: NOT allowed
    About

    Wim Coekaerts is the Senior Vice President of Linux and Virtualization Engineering for Oracle. He is responsible for Oracle's complete desktop to data center virtualization product line and the Oracle Linux support program.

    You can follow him on Twitter at @wimcoekaerts

    Search

    Categories
    Archives
    « April 2014
    SunMonTueWedThuFriSat
      
    1
    2
    3
    4
    5
    6
    7
    9
    10
    11
    12
    13
    14
    15
    16
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
       
           
    Today