What You See Is What You Get Element

How to Create a Local Yum Repository for Oracle Linux

by Jared Greenwald

How to create local yum repositories and configure up2date and yum to install and update packages from the repositories.

Published June 2012

Prerequisites

The system that will host the local repositories must:

  • RunOracle Linux 5 or Oracle Linux 6 for i386 or x86_64
  • Have valid customer support identifier (CSI)

Server Setup

The steps below describe how to download the latest packages from the Unbreakable Linux Network and make the packages available through a local yum server. You can create and host i386, x86_64, and ia64 repositories on a single machine.

  1. Register the machine on linux.oracle.com.

    For Oracle Linux 5:

    1. Import the RPM GPG key:

      rpm --import /usr/share/rhn/RPM-GPG-KEY
      
    2. Run up2date in text mode:

      up2date-nox --register
      
    3. Register the machine. Enter the username, the password, and a valid CSI.
       

    For Oracle Linux 6:

    1. Run the uln_register command.

      uln_register
      
    2. Register the machine. Enter the username, the password, and a valid CSI.
  2. Subscribe the machine to all desired channels. (Later, you will also subscribe to the required channels listed in step 4b below.)
    1. Open up a Web browser and go to the Unbreakable Linux Network at linux.oracle.com.
    2. Log in with the username and password that you used to register the machine.
    3. Click the Systems tab on the upper right corner.
    4. Find the registered machine on the list and click it.
    5. Click the EDIT button.
    6. Select the Yum Server checkbox and click the Apply Changes button.
    7. Select all channels you wish to create yum repositories for and click Subscribe. The following tables list available channels.

      Table 1. Oracle Linux 5
      i386 Channel x86_64 Channel IA64 Channel Description
      el5_i386_latest el5_x86_64_latest el5_ia64_latest Oracle Linux 5 latest updates
      el5_i386_addons el5_x86_64_addons N/A Oracle Linux 5 addons packages
      el5_i386_oracle el5_x86_64_oracle N/A Enterprise Software for Oracle Linux 5
      el5_ga_i386_base el5_ga_x86_64_base N/A Oracle Linux 5 GA base packages
      el5_u1_i386_base el5_u1_x86_64_base N/A Oracle Linux 5 Update 1 base packages
      el5_u2_i386_base el5_u2_x86_64_base N/A Oracle Linux 5 Update 2 base packages
      el5_u3_i386_base el5_u3_x86_64_base N/A Oracle Linux 5 Update 3 base packages
      el5_u4_i386_base el5_u4_x86_64_base el5_u4_ia64_base Oracle Linux 5 Update 3 base packages
      el5_u5_i386_base el5_u5_x86_64_base el5_u5_ia64_base Oracle Linux 5 Update 3 base packages
      el5_ga_i386_patch el5_ga_x86_64_patch N/A Oracle Linux 5 GA patches
      el5_u1_i386_patch el5_u1_x86_64_patch N/A Oracle Linux 5 Update 1 patches
      el5_u2_i386_patch el5_u2_x86_64_patch N/A Oracle Linux 5 Update 2 patches
      el5_u3_i386_patch el5_u3_x86_64_patch N/A Oracle Linux 5 Update 3 patches
      el5_u4_i386_patch el5_u4_x86_64_patch el5_u4_ia64_patch Oracle Linux 5 Update 4 patches
      el5_u5_i386_patch el5_u5_x86_64_patch el5_u5_ia64_patch Oracle Linux 5 Update 5 patches
      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
      ol5_u8_i386_base ol5_u8_x86_64_base ol5_u8_ia64_base Oracle Linux 5 Update 8 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
      ol5_u8_i386_patch ol5_u8_x86_64_patch ol5_u8_ia64_patch Oracle Linux 5 Update 8 patches

      Table 2. 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_u2_i386_base ol6_u2_x86_64_base N/A Oracle Linux 6 Update 2 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
      ol6_u2_i386_patch ol6_u2_x86_64_patch N/A Oracle Linux 6 Update 2 patches

      Table 3. 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

      Table 4. 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

      Table 5. Oracle VM 3
      Channel Description
      ovm3_x86_64_latest Oracle VM 3 latest updates
      ovm3_3.0_x86_64_base Oracle VM 3.0.1 base packages
      ovm3_3.0.2_x86_64_base Oracle VM 3.0.2 base packages
      ovm3_3.0.3_x86_64_base Oracle VM 3.0.3 base packages
      ovm3_3.0_x86_64_patch Oracle VM 3.0.1 patches
      ovm3_3.0.3_x86_64_patch Oracle VM 3.0.3 patches
      ovm3_3.1.1_x86_64_base Oracle VM 3.1.1 base packages
      ovm3_3.1.1_x86_64_patches Oracle VM 3.1.1 patches
  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 read/write permission to this directory.

    mkdir -p /var/www/html/yum
    
    Table 6. Approximate Space Requirements for Each Channel
    Channel Binaries Only Binaries and Source
    el*/ol*_latest 3 GB to 10 GB 5 GB to 15 GB
    el*/ol*_addons 600 MB 1 GB
    el*/ol*_oracle 1 GB N/A
    el*/ol*_base 3 GB 5.5 GB
    el*/ol*_patch 1 GB 2 GB
    ovm*_latest 500 MB 1 GB
    ovm*_base 400 MB 800 MB
    ovm*_patch 100 MB 200 MB
  4. Populate the repository:
    1. Download 167283.sh. Edit the repository locations in the script if they are different from what you have.
    2. Register the machine to the correct latest and addons channels. Required channels depend on the version and architecture of the OS that is running on the machine. This allows 167283.sh to install the uln-yum-proxy package, which in turn will install packages needed to create yum repositories.

      Table 7. Required Channels
      OS Arch Required Channels
      Oracle Linux 5 i386 el5_i386_latest el5_i386_addons
      Oracle 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
    3. Run 167283.sh. This will create yum repositories for the channels registered.
      • To download binary RPMs only, run the script without any options:

        sh 167283.sh
        
      • To download both binary and source RPMs, run the script with option src:

        sh 167283.sh src
        
  5. Start the Web server.

    chkconfig httpd on
    /etc/init.d/httpd start
    
  6. Please update the repository regularly by running 167283.sh. It is recommended that this be done once or twice a day.

Client Setup

Now that you've set up the repository server, you need to configure the clients to use the repositories you just set up.

  1. Import the GPG key.

    rpm --import /usr/share/rhn/RPM-GPG-KEY
    
  2. For Oracle Linux 5 only, do the following:

    1. Configure up2date to use the yum repository by editing /etc/sysconfig/rhn/sources to comment out the line up2date default so it looks like this:

      # up2date default
      
    2. Add the following lines replacing <repository_server> with the host name of the machine that is hosting the yum repository. Comment and uncomment individual repositories as needed.

      Oracle 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/
      
      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_u8_$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/
      #yum ol5_u8_$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/
      
  3. If you are using the yum client, perform the following required steps:
    1. 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 host name or IP address of the machine that is hosting the yum repository:

      Oracle Linux 5:

      [el5_latest]
      name=Oracle Linux $releasever - $basearch - latest
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/latest/$basearch/
      gpgcheck=1
      enabled=1
      
      [el5_addons]
      name=Oracle Linux $releasever - $basearch - addons
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/addons/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_oracle]
      name=Oracle Linux $releasever - $basearch - oracle
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/oracle/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_ga_base]
      name=Oracle Linux $releasever GA - $basearch - base
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/ga/base/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_u1_base]
      name=Oracle Linux $releasever U1 - $basearch - base
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/1/base/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_u2_base]
      name=Oracle Linux $releasever U2 - $basearch - base
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/2/base/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_u3_base]
      name=Oracle Linux $releasever U3 - $basearch - base
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/3/base/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_u4_base]
      name=Oracle Linux $releasever U4 - $basearch - base
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/4/base/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_u3_base]
      name=Oracle Linux $releasever U3 - $basearch - base
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/5/base/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_ga_patch]
      name=Oracle Linux $releasever GA - $basearch - patch
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/ga/patch/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_u1_patch]
      name=Oracle Linux $releasever U1 - $basearch - patch
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/1/patch/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_u2_patch]
      name=Oracle Linux $releasever U2 - $basearch - patch
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/2/patch/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_u3_patch]
      name=Oracle Linux $releasever U3 - $basearch - patch
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/3/patch/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_u4_patch]
      name=Oracle Linux $releasever U4 - $basearch - patch
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/4/patch/$basearch/
      gpgcheck=1
      enabled=0
      
      [el5_u5_patch]
      name=Oracle Linux $releasever U5 - $basearch - patch
      baseurl=http://<repository_server>/yum/EnterpriseLinux/EL5/5/patch/$basearch/
      gpgcheck=1
      enabled=0
      
      [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_u8_base]
      name=Oracle Linux $releasever U8 - $basearch - base
      baseurl=http://<repository_server>/yum/OracleLinux/OL5/8/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
      
      [ol5_u8_patch]
      name=Oracle Linux $releasever U8 - $basearch - patch
      baseurl=http://<repository_server>/yum/OracleLinux/OL5/8/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_u2_base]
      name=Oracle Linux $releasever U2 - $basearch - base
      baseurl=http://<repository_server>/yum/OracleLinux/OL6/2/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
      
      [ol6_u2_patch]
      name=Oracle Linux $releasever U2 - $basearch - patch
      baseurl=http://<repository_server>/yum/OracleLinux/OL6/2/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
      
    2. For an Oracle VM 3 configuration, add the repository URL to the Oracle VM 3 Manager configuration by selecting Tools -> Server Update Management (YUM) and then entering the following information:

      Table 8. Adding the Repository
      Yum Repository Name Yum Base URL*
      My OVM3 Mirror http://<repository_server>/yum/OracleVM/OVM3/3.0/latest/x86_64/

      * Depending on your mirror configuration, you could use one of the following for the yum base URL instead:

      http://<repository_server>/yum/OracleVM/OVM3/3.0/base/x86_64/
      http://<repository_server>/yum/OracleVM/OVM3/3.0.2/base/x86_64/
      http://<repository_server>/yum/OracleVM/OVM3/3.0.3/base/x86_64/
      http://<repository_server>/yum/OracleVM/OVM3/3.0/patch/x86_64/
      http://<repository_server>/yum/OracleVM/OVM3/3.0.3/patch/x86_64/
      http://<repository_server>/yum/OracleVM/OVM3/3.1.1/base/x86_64/
      http://<repository_server>/yum/OracleVM/OVM3/3.1.1/patch/x86_64/
      
      
  4. You are now ready to use up2date or yum to install and update files from your local yum repository, for example:

    up2date -u
    
    yum update
    

See Also

About the Author

Jared Greenwald is a Senior Developer at Oracle and one of the project leads for the Unbreakable Linux Network.

Revision 1.1, 06/11/2012

See sysadmin-related content for all Oracle technologies by following OTN Systems on Facebook and Twitter.