Documente Academic
Documente Profesional
Documente Cultură
Issue
How do I configure a yum local repository to be able to access a DVD ISO via HTTP on Red Hat Enterprise Linux?
Environment
Red Hat Enterprise Linux 5 Red Hat Enterprise Linux 6 Prerequisites : You will need the following packages on the server on which the repository will be configured :httpdyumcreaterepo following package on the client which will fetch updates from the configured repository :yum
Resolution
The packages mentioned in the Environment section should be installed (if not installed already) and then follow the steps given below.
Steps :
1.
Copy Red Hat Enterprise Linux 5/6 DVD ISO RHEL5-Client-20070208.0-i386DVD.iso from Red Hat Network and create a local repository on the local Repository server.
#mkdir -p /var/www/html/cdrom/iso #mount -o loop /RHELX-Client-20070208.0-i386-DVD.iso /var/www/html/cdrom/iso #cd /var/www/html/cdrom #createrepo . #yum clean all 2. Create a file /etc/yum.repos.d/file.repo which should have the contents as mentioned below : #cat /etc/yum.repos.d/file.repo [RHEL-Repository] name=RHEL repository baseurl=file:///cdrom enabled=1 gpgcheck=0 3. Share with httpd by making sure you have lines like these in your /etc/httpd/conf/
httpd.conf file:
How do I configure a yum local repository to be able to access a DVD ISO via HTTP on Red Hat Enterprise Linux?
ServerAdmin root@10.65.6.141 DocumentRoot /var/www/html ServerName 10.65.6.141
5.