Getting Started Guide

8 Preparing Nodes for Oracle Installation
2
To install and configure the http daemon, configure the machine that will
host the repository for all other machines to use the DVD image locally.
Create the file /etc/yum.repos.d/local.repo and enter the following:
[local]
name=Local Repository
baseurl=file:///media/myISO/Server
gpgcheck=0
enabled=0
3
Install the Apache service daemon using the following command which
temporarily enables the local repository for dependency resolution:
yum -y install httpd --enablerepo=local
After the Apache service daemon is installed, start the service and set it to
start up for us next time we reboot. Run the following commands as root:
service httpd start
chkconfig httpd on
To use Apache to serve out the repository, copy the contents of the DVD
into a published web directory. Run the following commands as root (make
sure to switch myISO with the name of your ISO) command:
mkdir /var/www/html/myISO
cp -R /media/myISO/* /var/www/html/myISO
NOTE: The command createrepo is used for creating custom
repositories, but it is not required as the DVD already holds the repository
information.
This step is only necessary if you are running SELinux on the server
that hosts the repository. Run the following command as root to
restore the appropriate SELinux context to the copied files:
restorecon -Rvv /var/www/html/.
The final step is to gather the DNS name or IP of the server that is
hosting the repository. The DNS name or IP of the hosting server will
be used to configure your yum repository repo file on the client server.
Book.book Page 8 Tuesday, July 26, 2011 11:33 PM