HOW TO

Set up a Yum repository in a Redhat environment

Last Published: April 25, 2020

Summary

** Internal Publish Only! This article may contain information that is not intended for external circulation. **

The instructions provided describe how to set up a Yum repository in a Redhat environment.

Procedure



  1. Make sure Yum is installed.

    Code:
    [root@6007linux ~]# yum

    If Yum is not installed, it can be download from Yum RPM.

    Download the yum.conf file from Location of Yum.conf.
  2. Move the downloaded yum.conf file to the '/etc/' directory.

    Code:
    [root@6007linux ~]# cp <location of yum.conf>/yum.conf /etc/yum.conf

  3. Configure the yum.conf file.

    Code:
    [root@6007linux ~]# vi /etc/yum.conf

    After configuring, yum.conf file should look similar to the code below.

    Code:
    [main]
    cachedir=/var/cache/yum
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    obsoletes=1
    # PUT YOUR REPOS HERE OR IN separate files named file.repo
    # in /etc/yum.repos.d
    #[base]
    #name=RedHat Enterprice Linux ES 3 - Base
    #baseurl=http://yummie/RHEL3/es/base
    #gpgcheck=0

    #[update_3]
    #name=RedHat Enterprice Linux ES 3 - Update3
    #baseurl=http://yummie/RHEL3/es/update3
    #gpgcheck=0

    #[update_4]
    #name=RedHat Enterprice Linux ES 3 - Update4
    #baseurl=http://yummie/RHEL3/es/update4
    #gpgcheck=0

    #[update_5]
    #name=RedHat Enterprice Linux ES 3 - Update_5
    #baseurl=http://yummie/RHEL3/es/update5
    #gpgcheck=0

    [update_6]
    name=RedHat Enterprice Linux ES 4 - Update_6
    baseurl=http://yummie/mrepo/rhel4.6-es-x86_64/RPMS.os/
    gpgcheck=0

  4. Modify the entry to point to the repository that is being updated. In the example below, the system is being updated to Redhat 5.6.

    Code:
    [update_6]
    name=RedHat Enterprise Linux ES 5 - Update_6
    baseurl=http://yummie/mrepo/rhel5.6-$basearch/RPMS.os/
    gpgcheck=0

  5. Save the file and test it to see if Yum is working.

    Code:
    [root@6007linux ~]# yum update

  6. For further commands on how to use Yum please see the article 'Using Yum'.

Article ID:000011419

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic