Local yum repository from OEL 6.1 DVD


$ sudo mkdir /mnt/OEL6.1
$ sudo mount -o loopback -t iso9660 /dev/cdrom /mnt/OEL6.1
$ cd /etc/yum.repos.d
$ sudo nano OEL61.repo

[OEL61]
name = Oracle Enteprise Linux 6.1 x64 DVD
baseurl = file:///mnt/OEL6.1/Server/
gpgcheck = 0
enabled = 1

$ sudo yum clean all

Loaded plugins: refresh-packagekit
Cleaning repos: OEL61
Cleaning up Everything

$ sudo yum list installed
$ sudo yum list available

Test install:

$ sudo yum install alacarte

Advertisement

Posted on 07.07.2011, in Linux, PostgreSQL, etc. and tagged . Bookmark the permalink. 1 Comment.

  1. Public yum server for OEL 6
    And here is an Oracle recipe to add public yum repository for OEL 6.1, with a minor twist if you’re behind a proxy server:

    $ cd /etc/yum.repos.d
    $ sudo -s
    # export http_proxy=your.proxy-ip:80
    # wget  http://public-yum.oracle.com/public-yum-ol6.repo
    # nano public-yum-ol6.repo
    

    Edit:

    [ol6_ga_base]
    name=Oracle Linux 6 GA - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
    gpgcheck=1
    enabled=1    <-- CHANGE from 0 to 1
    
    [ol6_u1_base]
    name=Oracle Linux 6 U1 - $basearch - base
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
    gpgcheck=1
    enabled=0    <-- CHANGE from 0 to 1