Create a Yum repository on Exalogic 22.214.171.124.x
This document describes how to create a yum repository on ZFS Storage inside an Exalogic machine.
Prepare your environment
Create a zfs share
Connect to one of the storage server to create a share.
This share hosts the Exalogic yum repository.
- Connect to storage server
Add Share to project
- Create a share named ‘yum-repo’ on common project
Add permissions on share
- Add Nfs Exception to access the share from IPoIB-vserver-shared-storage network.
- Add read/Write and root access.
Mount ‘yum-repo’ share on a vServer
- Edit /etc/fstab and add a entry :
With 172.17.0.5 is the IPoIB address of the storage server on IPoIB-vserver-shared-storage
- Create directory /export/common/yum-repo
- Mount directory on vServer :
- Download Oracle enterprise Linux iso file on https://edelivery.oracle.com
- upload Oracle Enterprise Linux iso file in the share :
With your favorite scp client, copy Oracle Enterprise Linux iso file to /export/common/yum-repo.
- Create temporary directory and repository version directory :
- mount iso file on the temporary directory :
- Copy iso content in repository directory :
Create your repository
- To create repository, you must install createrepo package.
This package can be found on temporary directory previously created
Control if already installed :
- Install package :
- At this step, remove any link to Packages directory in subdirectories to avoid loop in repository :
- Create repository :
- Unmount iso file :
- Delete iso file :
Configure yum client
Update configuration files
- Update /etc/yum.conf file :
Add exclusion to Exalogic specific package which cannot be updated:
- Create /etc/yum.repos.d/local_yum.repo file with the following content:
Refresh yum database
Refresh yum client on each machine now configured with the local repository.
- First, clean yum cache :
- Recreate yum cache and headers :
Now, you can install packages with yum install command.