United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Last updated: 9 Dec, 2011


Yum Repository Setup


This document explains how to create local yum repositories and configure up2date and yum to install and update packages from them.

Server Setup

Prerequisites:

  • A machine running Enterprise Linux 4, Oracle Linux 5 or Oracle Linux 6, for i386 or x86_64.
  • A valid CSI

The steps below describe how to download latest packages from Unbreakable Linux Network and make them available through a local yum server. i386, x86_64, and ia64 repositories can be created and hosted on a single machine.

  1. Register the machine on the Unbreakable Linux Network.
    1. For Enterprise Linux 4 and Oracle Linux 5:
      1. Import the RPM GPG key
      2. rpm --import /usr/share/rhn/RPM-GPG-KEY
      3. Run up2date in text mode.
      4. up2date-nox --register
      5. Register the machine. Enter username, password, and a valid CSI.
    2. For Oracle Linux 6:
      1. Run the uln_register command.
      2. uln_register
      3. Register the machine. Enter username, password, and a valid CSI.
  2. Subscribe the machine to all desired channels in addition to those required channels listed in step 4a below.
    1. Open up a web browser and go to linux.oracle.com.
    2. Log in with username and password that were used to register the machine
    3. Click on the Systems tab on the upper right corner
    4. Find the registered machine on the list and click on it
    5. Click on the EDIT button
    6. Check the Yum Server checkbox and click on the Apply Changes button
    7. Check all channels for which you wish to create yum repositories for and click subscribe.
      • Enterprise Linux 4
      • i386 Channel x86_64 Channel IA64 Channel Description
        el4_i386_latest el4_x86_64_latest el4_ia64_latest Enterprise Linux 4 latest updates
        el4_i386_addons el4_x86_64_addons N/A Enterprise Linux 4 addons packages
        el4_i386_oracle el4_x86_64_oracle N/A Oracle Software for Enterprise Linux 4
        el4_u4_i386_base el4_u4_x86_64_base N/A Enterprise Linux 4 Update 4 base packages
        el4_u5_i386_base el4_u5_x86_64_base N/A Enterprise Linux 4 Update 5 base packages
        el4_u6_i386_base el4_u6_x86_64_base el4_u6_ia64_base Enterprise Linux 4 Update 6 base packages
        el4_u7_i386_base el4_u7_x86_64_base el4_u7_ia64_base Enterprise Linux 4 Update 7 base packages
        el4_u8_i386_base el4_u8_x86_64_base el4_u8_ia64_base Enterprise Linux 4 Update 8 base packages
        el4_u9_i386_base el4_u9_x86_64_base N/A Enterprise Linux 4 Update 9 base packages
        el4_u4_i386_patch el4_u4_x86_64_patch N/A Enterprise Linux 4 Update 4 patches
        el4_u5_i386_patch el4_u5_x86_64_patch N/A Enterprise Linux 4 Update 5 patches
        el4_u6_i386_patch el4_u6_x86_64_patch el4_u6_ia64_patch Enterprise Linux 4 Update 6 patches
        el4_u7_i386_patch el4_u7_x86_64_patch el4_u7_ia64_patch Enterprise Linux 4 Update 7 patches
        el4_u8_i386_patch el4_u8_x86_64_patch el4_u8_ia64_patch Enterprise Linux 4 Update 8 patches

      • Enterprise Linux 5
      • i386 Channel x86_64 Channel IA64 Channel Description
        el5_i386_latest el5_x86_64_latest el5_ia64_latest Enterprise Linux 5 latest updates
        el5_i386_addons el5_x86_64_addons N/A Enterprise Linux 5 addons packages
        el5_i386_oracle el5_x86_64_oracle N/A Oracle Software for Enterprise Linux 5
        el5_ga_i386_base el5_ga_x86_64_base N/A Enterprise Linux 5 GA base packages
        el5_u1_i386_base el5_u1_x86_64_base N/A Enterprise Linux 5 Update 1 base packages
        el5_u2_i386_base el5_u2_x86_64_base N/A Enterprise Linux 5 Update 2 base packages
        el5_u3_i386_base el5_u3_x86_64_base N/A Enterprise Linux 5 Update 3 base packages
        el5_u4_i386_base el5_u4_x86_64_base el5_u4_ia64_base Enterprise Linux 5 Update 3 base packages
        el5_u5_i386_base el5_u5_x86_64_base el5_u5_ia64_base Enterprise Linux 5 Update 3 base packages
        el5_ga_i386_patch el5_ga_x86_64_patch N/A Enterprise Linux 5 GA patches
        el5_u1_i386_patch el5_u1_x86_64_patch N/A Enterprise Linux 5 Update 1 patches
        el5_u2_i386_patch el5_u2_x86_64_patch N/A Enterprise Linux 5 Update 2 patches
        el5_u3_i386_patch el5_u3_x86_64_patch N/A Enterprise Linux 5 Update 3 patches
        el5_u4_i386_patch el5_u4_x86_64_patch el5_u4_ia64_patch Enterprise Linux 5 Update 4 patches
        el5_u5_i386_patch el5_u5_x86_64_patch el5_u5_ia64_patch Enterprise Linux 5 Update 5 patches

      • Oracle Linux 5
      • i386 Channel x86_64 Channel IA64 Channel Description
        ol5_i386_latest ol5_x86_64_latest ol5_ia64_latest Oracle Linux 5 latest updates
        N/A ol5_u5_x86_64_base N/A Oracle Linux 5 Update 5 base packages
        ol5_u6_i386_base ol5_u6_x86_64_base ol5_u6_ia64_base Oracle Linux 5 Update 6 base packages
        ol5_u7_i386_base ol5_u7_x86_64_base ol5_u7_ia64_base Oracle Linux 5 Update 7 base packages
        N/A ol5_u5_x86_64_patch N/A Oracle Linux 5 Update 5 patches
        ol5_u6_i386_patch ol5_u6_x86_64_patch ol5_u6_ia64_patch Oracle Linux 5 Update 6 patches
        ol5_u7_i386_patch ol5_u7_x86_64_patch ol5_u7_ia64_patch Oracle Linux 5 Update 7 patches

      • Oracle Linux 6
      • i386 Channel x86_64 Channel IA64 Channel Description
        ol6_i386_latest ol6_x86_64_latest N/A Oracle Linux 6 latest updates
        ol6_i386_addons ol6_x86_64_addons N/A Oracle Addons for Oracle Linux 6
        ol6_i386_oracle ol6_x86_64_oracle N/A Oracle Software for Oracle Linux 6
        ol6_ga_i386_base ol6_ga_x86_64_base N/A Oracle Linux 6 GA base packages
        ol6_u1_i386_base ol6_u1_x86_64_base N/A Oracle Linux 6 Update 1 base packages
        ol6_ga_i386_patch ol6_ga_x86_64_patch N/A Oracle Linux 6 GA patches
        ol6_u1_i386_patch ol6_u1_x86_64_patch N/A Oracle Linux 6 Update 1 patches

      • Oracle VM 2.1
      • Channel Description
        ovm2_i386_latest Oracle VM 2 latest updates
        ovm2_2.1.0_i386_base Oracle VM 2.1.0 base packages
        ovm2_2.1.1_i386_base Oracle VM 2.1.1 base packages
        ovm2_2.1.2_i386_base Oracle VM 2.1.2 base packages
        ovm2_2.1.5_i386_base Oracle VM 2.1.5 base packages
        ovm2_2.1.0_i386_patch Oracle VM 2.1.0 patches
        ovm2_2.1.1_i386_patch Oracle VM 2.1.1 patches
        ovm2_2.1.2_i386_patch Oracle VM 2.1.2 patches
        ovm2_2.1.5_i386_patch Oracle VM 2.1.5 patches

      • Oracle VM 2.2
      • Channel Description
        ovm22_i386_latest Oracle VM 2.2 latest updates
        ovm22_i386_oracle Oracle software for Oracle VM 2.2
        ovm22_2.2.0_i386_base Oracle VM 2.2.0 base packages
        ovm22_2.2.1_i386_base Oracle VM 2.2.1 base packages
        ovm22_2.2.2_i386_base Oracle VM 2.2.2 base packages
        ovm22_2.2.0_i386_patch Oracle VM 2.2 patches
        ovm22_2.2.1_i386_patch Oracle VM 2.2 patches
        ovm22_2.2.2_i386_patch Oracle VM 2.2 patches

      • Oracle VM 3.0
      • Channel Description
        ovm3_3.0_x86_64_base Oracle VM 3.0.1 base packages

  3. Create a yum repository base directory in /var/www/html. This directory will house the repository. Make sure that the yum repository owner has the read/write permission to this directory.
  4. mkdir -p /var/www/html/yum
    Approximate space requirements for each channel:

    Channel

    Binaries Only

    Binaries and Source

    el*/ol*_latest 3-10G 5-15G
    el*/ol*_addons 600M 1G
    el*/ol*_oracle 1G N/A
    el*/ol*_base 3G 5.5G
    el*/ol*_patch 1G 2G
    ovm*_latest 500M 1G
    ovm*_base 400M 800M
    ovm*_patch 100M 200M

  5. Populate the repository
    1. Download 167283.sh. Edit repository locations in the script if they are different from what you have.
    2. Register the machine to correct latest and addons channels. Required channels depend on the version and architecture of the OS that is running on the machine.
      OS Arch Required Channels
      Enterprise Linux 4 i386 el4_i386_latest el4_i386_addons
      Enterprise Linux 4 x86_64 el4_x86_64_latest el4_x86_64_addons
      Enterprise Linux 5 i386 el5_i386_latest el5_i386_addons
      Enterprise Linux 5 x86_64 el5_x86_64_latest el5_x86_64_addons
      Oracle Linux 5 i386 ol5_i386_latest el5_i386_addons
      Oracle Linux 5 x86_64 ol5_x86_64_latest el5_x86_64_addons
      Oracle Linux 6 i386 ol6_i386_latest ol6_i386_addons
      Oracle Linux 6 x86_64 ol6_x86_64_latest ol6_x86_64_addons
      This allows 167283.sh to install the uln-yum-proxy package, which in turn will install packages needed to create yum repositories.
    3. Run 167283.sh. This will create yum repositories for the channels registered.
      • Binary RPMs only
      • To download binary RPMs only, run the script without any options.
        sh 167283.sh
      • Binary and source RPMs
      • To download both binary and source RPMs, run the script with option "src".
        sh 167283.sh src
  6. Start the web server
  7. chkconfig httpd on
    /etc/init.d/httpd start
  8. Please update the repository regularly by running 167283.sh, It is recommended that this be done once or twice a day.

Client Setup

  1. Import the GPG key
  2. rpm --import /usr/share/rhn/RPM-GPG-KEY
  3. Configure up2date to use the yum repository (Enterprise Linux 4, Enterprise Linux 5 or Oracle Linux 5 only). Edit /etc/sysconfig/rhn/sources. Comment out line
    up2date default
    to
    #up2date default

    and add the following lines. Replace <repository_server> with the hostname of the machine that is hosting the yum repository. Comment and uncomment individual repositories as needed.

    • Enterprise Linux 4
    • yum el4_$ARCH_latest http://<repository_server>/yum/EnterpriseLinux/EL4/latest/$ARCH/
      #yum el4_$ARCH_addons http://<repository_server>/yum/EnterpriseLinux/EL4/addons/$ARCH/
      #yum el4_$ARCH_oracle http://<repository_server>/yum/EnterpriseLinux/EL4/oracle/$ARCH/
      #
      #yum el4_u4_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL4/4/base/$ARCH/
      #yum el4_u5_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL4/5/base/$ARCH/
      #yum el4_u6_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL4/6/base/$ARCH/
      #yum el4_u7_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL4/7/base/$ARCH/
      #yum el4_u8_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL4/8/base/$ARCH/
      #yum el4_u9_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL4/9/base/$ARCH/
      #
      #yum el4_u4_$ARCH_patch http://<repository_server>/yum/EnterpriseLinux/EL4/4/patch/$ARCH/
      #yum el4_u5_$ARCH_patch http://<repository_server>/yum/EnterpriseLinux/EL4/5/patch/$ARCH/
      #yum el4_u6_$ARCH_patch http://<repository_server>/yum/EnterpriseLinux/EL4/6/patch/$ARCH/
      #yum el4_u7_$ARCH_patch http://<repository_server>/yum/EnterpriseLinux/EL4/7/patch/$ARCH/
      #yum el4_u8_$ARCH_patch http://<repository_server>/yum/EnterpriseLinux/EL4/8/patch/$ARCH/

    • Enterprise Linux 5
    • yum el5_$ARCH_latest http://<repository_server>/yum/EnterpriseLinux/EL5/latest/$ARCH/
      #yum el5_$ARCH_addons http://<repository_server>/yum/EnterpriseLinux/EL5/addons/$ARCH/
      #yum el5_$ARCH_oracle http://<repository_server>/yum/EnterpriseLinux/EL5/oracle/$ARCH/
      #
      #yum el5_ga_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL5/ga/base/$ARCH/
      #yum el5_u1_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL5/1/base/$ARCH/
      #yum el5_u2_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL5/2/base/$ARCH/
      #yum el5_u3_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL5/3/base/$ARCH/
      #yum el5_u4_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL5/4/base/$ARCH/
      #yum el5_u5_$ARCH_base http://<repository_server>/yum/EnterpriseLinux/EL5/5/base/$ARCH/
      #
      #yum el5_ga_$ARCH_patch http://<repository_server>/yum/EnterpriseLinux/EL5/ga/patch/$ARCH/
      #yum el5_u1_$ARCH_patch http://<repository_server>/yum/EnterpriseLinux/EL5/1/patch/$ARCH/
      #yum el5_u2_$ARCH_patch http://<repository_server>/yum/EnterpriseLinux/EL5/2/patch/$ARCH/
      #yum el5_u3_$ARCH_patch http://<repository_server>/yum/EnterpriseLinux/EL5/3/patch/$ARCH/
      #yum el5_u4_$ARCH_patch http://<repository_server>/yum/EnterpriseLinux/EL5/4/patch/$ARCH/
      #yum el5_u5_$ARCH_patch http://<repository_server>/yum/EnterpriseLinux/EL5/5/patch/$ARCH/

    • Oracle Linux 5
    • yum ol5_$ARCH_latest http://<repository_server>/yum/OracleLinux/OL5/latest/$ARCH/
      #yum ol5_u5_$ARCH_base http://<repository_server>/yum/OracleLinux/OL5/1/base/$ARCH/
      #yum ol5_u6_$ARCH_base http://<repository_server>/yum/OracleLinux/OL5/1/base/$ARCH/
      #yum ol5_u7_$ARCH_base http://<repository_server>/yum/OracleLinux/OL5/1/base/$ARCH/
      #
      #yum ol5_u5_$ARCH_patch http://<repository_server>/yum/OracleLinux/OL5/1/patch/$ARCH/
      #yum ol5_u6_$ARCH_patch http://<repository_server>/yum/OracleLinux/OL5/1/patch/$ARCH/
      #yum ol5_u7_$ARCH_patch http://<repository_server>/yum/OracleLinux/EL5/1/patch/$ARCH/

    • Oracle VM 2.1
    • yum ovm2_i386_latest http://<repository_server>/yum/OracleVM/OVM2/latest/i386/
      #yum ovm2_2.1.0_i386_base http://<repository_server>/yum/OracleVM/OVM2/2.1.0/base/i386/
      #yum ovm2_2.1.1_i386_base http://<repository_server>/yum/OracleVM/OVM2/2.1.1/base/i386/
      #yum ovm2_2.1.2_i386_base http://<repository_server>/yum/OracleVM/OVM2/2.1.2/base/i386/
      #yum ovm2_2.1.5_i386_base http://<repository_server>/yum/OracleVM/OVM2/2.1.5/base/i386/
      #
      #yum ovm2_2.1.0_i386_patch http://<repository_server>/yum/OracleVM/OVM2/2.1.0/patch/i386/
      #yum ovm2_2.1.1_i386_patch http://<repository_server>/yum/OracleVM/OVM2/2.1.1/patch/i386/
      #yum ovm2_2.1.2_i386_patch http://<repository_server>/yum/OracleVM/OVM2/2.1.2/patch/i386/
      #yum ovm2_2.1.5_i386_patch http://<repository_server>/yum/OracleVM/OVM2/2.1.5/patch/i386/

    • Oracle VM 2.2
    • yum ovm22_i386_latest http://<repository_server>/yum/OracleVM/OVM22/latest/i386/
      #yum ovm22_i386_oracle http://<repository_server>/yum/OracleVM/OVM22/oracle/i386/
      #
      #yum ovm22_2.2.0_i386_base http://<repository_server>/yum/OracleVM/OVM22/2.2.0/base/i386/
      #yum ovm22_2.2.1_i386_base http://<repository_server>/yum/OracleVM/OVM22/2.2.1/base/i386/
      #yum ovm22_2.2.2_i386_base http://<repository_server>/yum/OracleVM/OVM22/2.2.2/base/i386/
      #
      #yum ovm22_2.2.0_i386_patch http://<repository_server>/yum/OracleVM/OVM22/2.2.0/patch/i386/
      #yum ovm22_2.2.1_i386_patch http://<repository_server>/yum/OracleVM/OVM22/2.2.1/patch/i386/
      #yum ovm22_2.2.2_i386_patch http://<repository_server>/yum/OracleVM/OVM22/2.2.2/patch/i386/
       
  4. The following steps are required for users using the yum client
    1. Install python-urlgrabber if it is not already installed. This applies only to x86_64 versions of Enterprise Linux 4 U4 and U5.
      1. If commented out, uncomment the line in /etc/sysconfig/rhn/sources that begins with
      2. #yum el4_addons [...]
      3. Run up2date to install python-urlgrabber.
      4. up2date -i python-urlgrabber
      5. Comment out the line in /etc/sysconfig/rhn/sources if needed.

    2. Replace /etc/yum.repos.d/ULN-Base.repo with the following. Note that only the latest channel is enabled by default. Replace <repository_server> with the hostname ir ip address of the machine that is hosting the yum repository.

      • Enterprise Linux 4
      • [el4_latest]
        name=Enterprise Linux $releasever - $basearch - latest
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/latest/$basearch/
        gpgcheck=1
        enabled=1

        [el4_addons]
        name=Enterprise Linux $releasever - $basearch - addons
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/addons/$basearch/
        gpgcheck=1
        enabled=1

        [el4_oracle]
        name=Enterprise Linux $releasever - $basearch - oracle
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/oracle/$basearch/
        gpgcheck=1
        enabled=0

        [el4_u4_base]
        name=Enterprise Linux $releasever U4 - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/4/base/$basearch/
        gpgcheck=1
        enabled=0

        [el4_u5_base]
        name=Enterprise Linux $releasever U5 - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/5/base/$basearch/
        gpgcheck=1
        enabled=0

        [el4_u6_base]
        name=Enterprise Linux $releasever U6 - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/6/base/$basearch/
        gpgcheck=1
        enabled=0

        [el4_u7_base]
        name=Enterprise Linux $releasever U7 - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/7/base/$basearch/
        gpgcheck=1
        enabled=0

        [el4_u8_base]
        name=Enterprise Linux $releasever U8 - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/8/base/$basearch/
        gpgcheck=1
        enabled=0

        [el4_u9_base]
        name=Enterprise Linux $releasever U9 - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/9/base/$basearch/
        gpgcheck=1
        enabled=0

        [el4_u4_patch]
        name=Enterprise Linux $releasever U4 - $basearch - patch
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/4/patch/$basearch/
        gpgcheck=1
        enabled=0

        [el4_u5_patch]
        name=Enterprise Linux $releasever U5 - $basearch - patch
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/5/patch/$basearch/
        gpgcheck=1
        enabled=0

        [el4_u6_patch]
        name=Enterprise Linux $releasever U6 - $basearch - patch
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/6/patch/$basearch/
        gpgcheck=1
        enabled=0

        [el4_u7_patch]
        name=Enterprise Linux $releasever U7 - $basearch - patch
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/7/patch/$basearch/
        gpgcheck=1
        enabled=0

        [el4_u8_patch]
        name=Enterprise Linux $releasever U8 - $basearch - patch
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL4/8/patch/$basearch/
        gpgcheck=1
        enabled=0
      • Enterprise Linux 5
      • [el5_latest]
        name=Enterprise Linux $releasever - $basearch - latest
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/latest/$basearch/
        gpgcheck=1
        enabled=1

        [el5_addons]
        name=Enterprise Linux $releasever - $basearch - addons
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/addons/$basearch/
        gpgcheck=1
        enabled=0

        [el5_oracle]
        name=Enterprise Linux $releasever - $basearch - oracle
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/oracle/$basearch/
        gpgcheck=1
        enabled=0

        [el5_ga_base]
        name=Enterprise Linux $releasever GA - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/ga/base/$basearch/
        gpgcheck=1
        enabled=0

        [el5_u1_base]
        name=Enterprise Linux $releasever U1 - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/1/base/$basearch/
        gpgcheck=1
        enabled=0

        [el5_u2_base]
        name=Enterprise Linux $releasever U2 - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/2/base/$basearch/
        gpgcheck=1
        enabled=0

        [el5_u3_base]
        name=Enterprise Linux $releasever U3 - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/3/base/$basearch/
        gpgcheck=1
        enabled=0

        [el5_u4_base]
        name=Enterprise Linux $releasever U4 - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/4/base/$basearch/
        gpgcheck=1
        enabled=0

        [el5_u3_base]
        name=Enterprise Linux $releasever U3 - $basearch - base
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/5/base/$basearch/
        gpgcheck=1
        enabled=0

        [el5_ga_patch]
        name=Enterprise Linux $releasever GA - $basearch - patch
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/ga/patch/$basearch/
        gpgcheck=1
        enabled=0

        [el5_u1_patch]
        name=Enterprise Linux $releasever U1 - $basearch - patch
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/1/patch/$basearch/
        gpgcheck=1
        enabled=0

        [el5_u2_patch]
        name=Enterprise Linux $releasever U2 - $basearch - patch
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/2/patch/$basearch/
        gpgcheck=1
        enabled=0

        [el5_u3_patch]
        name=Enterprise Linux $releasever U3 - $basearch - patch
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/3/patch/$basearch/
        gpgcheck=1
        enabled=0

        [el5_u4_patch]
        name=Enterprise Linux $releasever U4 - $basearch - patch
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/4/patch/$basearch/
        gpgcheck=1
        enabled=0

        [el5_u5_patch]
        name=Enterprise Linux $releasever U5 - $basearch - patch
        baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/5/patch/$basearch/
        gpgcheck=1
        enabled=0
      • Oracle Linux 5
      • [ol5_latest]
        name=Oracle Linux $releasever - $basearch - latest
        baseurl=http://<repository_server>/yum/OracleLinux/OL5/latest/$basearch/
        gpgcheck=1
        enabled=1

        [ol5_u5_base]
        name=Oracle Linux $releasever U5 - $basearch - base
        baseurl=http://<repository_server>/yum/OracleLinux/OL5/5/base/$basearch/
        gpgcheck=1
        enabled=0

        [ol5_u6_base]
        name=Oracle Linux $releasever U6 - $basearch - base
        baseurl=http://<repository_server>/yum/OracleLinux/OL5/6/base/$basearch/
        gpgcheck=1
        enabled=0

        [ol5_u7_base]
        name=Oracle Linux $releasever U7 - $basearch - base
        baseurl=http://<repository_server>/yum/OracleLinux/OL5/7/base/$basearch/
        gpgcheck=1
        enabled=0

        [ol5_u5_patch]
        name=Oracle Linux $releasever U5 - $basearch - patch
        baseurl=http://<repository_server>/yum/OracleLinux/OL5/5/patch/$basearch/
        gpgcheck=1
        enabled=0

        [ol5_u6_patch]
        name=Oracle Linux $releasever U6 - $basearch - patch
        baseurl=http://<repository_server>/yum/OracleLinux/OL5/6/patch/$basearch/
        gpgcheck=1
        enabled=0

        [ol5_u7_patch]
        name=Oracle Linux $releasever U7 - $basearch - patch
        baseurl=http://<repository_server>/yum/OracleLinux/OL5/7/patch/$basearch/
        gpgcheck=1
        enabled=0
      • Oracle Linux 6
      • [ol6_latest]
        name=Oracle Linux $releasever - $basearch - latest
        baseurl=http://<repository_server>/yum/OracleLinux/OL6/latest/$basearch/
        gpgcheck=1
        enabled=1

        [ol6_addons]
        name=Oracle Linux $releasever - $basearch - addons
        baseurl=http://<repository_server>/yum/OracleLinux/OL6/addons/$basearch/
        gpgcheck=1
        enabled=0

        [ol6_oracle]
        name=Oracle Linux $releasever - $basearch - oracle
        baseurl=http://<repository_server>/yum/OracleLinux/OL6/oracle/$basearch/
        gpgcheck=1
        enabled=0

        [ol6_ga_base]
        name=Oracle Linux $releasever GA - $basearch - base
        baseurl=http://<repository_server>/yum/OracleLinux/OL6/0/base/$basearch/
        gpgcheck=1
        enabled=0

        [ol6_u1_base]
        name=Oracle Linux $releasever U1 - $basearch - base
        baseurl=http://<repository_server>/yum/OracleLinux/OL6/1/base/$basearch/
        gpgcheck=1
        enabled=0

        [ol6_ga_patch]
        name=Oracle Linux $releasever GA - $basearch - patch
        baseurl=http://<repository_server>/yum/OracleLinux/OL6/0/patch/$basearch/
        gpgcheck=1
        enabled=0

        [ol6_u1_patch]
        name=Oracle Linux $releasever U1 - $basearch - patch
        baseurl=http://<repository_server>/yum/OracleLinux/OL6/1/patch/$basearch/
        gpgcheck=1
        enabled=0
      • Oracle VM 2.1
      • [ovm2_latest]
        name=Oracle VM 2 - i386 - latest
        baseurl=http://<repository_server>/yum/OracleVM/OVM2/latest/i386/
        gpgcheck=1
        enabled=1

        [ovm2_2.1.0_base]
        name= Oracle VM 2.1.0 - i386 - base
        baseurl=http://<repository_server>/yum/OracleVM/OVM2/2.1.0/base/i386/
        gpgcheck=1
        enabled=0

        [ovm2_2.1.1_base]
        name= Oracle VM 2.1.1 - i386 - base
        baseurl=http://<repository_server>/yum/OracleVM/OVM2/2.1.1/base/i386/
        gpgcheck=1
        enabled=0

        [ovm2_2.1.2_base]
        name= Oracle VM 2.1.2 - i386 - base
        baseurl=http://<repository_server>/yum/OracleVM/OVM2/2.1.2/base/i386/
        gpgcheck=1
        enabled=0

        [ovm2_2.1.5_base]
        name= Oracle VM 2.1.5 - i386 - base
        baseurl=http://<repository_server>/yum/OracleVM/OVM2/2.1.5/base/i386/
        gpgcheck=1
        enabled=0

        [ovm2_2.1.0_patch]
        name= Oracle VM 2.1.0 - i386 - patch
        baseurl=http://<repository_server>/yum/OracleVM/OVM2/2.1.0/patch/i386/
        gpgcheck=1
        enabled=0

        [ovm2_2.1.1_patch]
        name= Oracle VM 2.1.1 - i386 - patch
        baseurl=http://<repository_server>/yum/OracleVM/OVM2/2.1.1/patch/i386/
        gpgcheck=1
        enabled=0

        [ovm2_2.1.2_patch]
        name= Oracle VM 2.1.2 - i386 - patch
        baseurl=http://<repository_server>/yum/OracleVM/OVM2/2.1.2/patch/i386/
        gpgcheck=1
        enabled=0

        [ovm2_2.1.5_patch]
        name= Oracle VM 2.1.5 - i386 - patch
        baseurl=http://<repository_server>/yum/OracleVM/OVM2/2.1.5/patch/i386/
        gpgcheck=1
        enabled=0
      • Oracle VM 2.2
      • [ovm22_latest]
        name=Oracle VM 2.2 - i386 - latest
        baseurl=http://<repository_server>/yum/OracleVM/OVM22/latest/i386/
        gpgcheck=1
        enabled=1

        [ovm22_oracle]
        name=Oracle VM 2.2 - i386 - oracle
        baseurl=http://<repository_server>/yum/OracleVM/OVM22/oracle/i386/
        gpgcheck=1
        enabled=0

        [ovm22_2.2.0_base]
        name= Oracle VM 2.2.0 - i386 - base
        baseurl=http://<repository_server>/yum/OracleVM/OVM22/2.2.0/base/i386/
        gpgcheck=1
        enabled=0

        [ovm22_2.2.1_base]
        name= Oracle VM 2.2.1 - i386 - base
        baseurl=http://<repository_server>/yum/OracleVM/OVM22/2.2.1/base/i386/
        gpgcheck=1
        enabled=0

        [ovm22_2.2.0_patch]
        name= Oracle VM 2.2.0 - i386 - patch
        baseurl=http://<repository_server>/yum/OracleVM/OVM22/2.2.0/patch/i386/
        gpgcheck=1
        enabled=0

        [ovm22_2.2.1_patch]
        name= Oracle VM 2.2.1 - i386 - patch
        baseurl=http://<repository_server>/yum/OracleVM/OVM22/2.2.1/patch/i386/
        gpgcheck=1
        enabled=0
      • Oracle VM 3.0
      • [ovm3_3.0_base]
        name=Oracle VM 3.0 - x86_64 - base
        baseurl=http://<repository_server>/yum/OracleVM/OVM3/3.0/base/x86_64/
        gpgcheck=1
        enabled=1

  5. You are now ready to use up2date or yum to install and update files from your local yum repository. For example:
  6. up2date -u
    
    yum update