MyOracleWorld.Net  .........

 

Setup a yum or up2date repository to use a locally mounted DVD

Solution:

 

For RH5/6 do the following:

 

Mount the RH6 ISO as /mnt/mntisoimage using the command below

 

mount -t iso9660 -o loop /root/rpm/rhel-server-6.0-x86_64-dvd.iso /mnt/isoimage/

Create a dvd.repotext file in /etc/yum.repos.d/with the following content:

[dvd]
mediaid=1285193176.460470*
name=DVD for RHEL6
baseurl=file:///mnt/isoimage/Server
enabled=1
gpgcheck=0

  

(*) The  mediaid= value comes from the  .discinfo file located in the root of the DVD. 

 

[root@rh6pw7 yum.repos.d]# more /mnt/isoimage/.discinfo
1285193176.460470
Red Hat Enterprise Linux 6.0
x86_64
1

  

 

If problems occur while trying this procedure, run  yum clean all and try running  yum install again. 

  

Note: This will only work for the "base" rpm pakages under the  /Server directory; if access is needed to the rest of the software in the Red Hat Enterprise Linux Server DVD (Cluster, ClusterStorage and VT), add the following stanzas to the  dvd.repo file: 

 

[dvd-cluster]
mediaid=1285193176.460470*
name=DVD for RHEL6
baseurl=file:///mnt/isoimage/Cluster
enabled=1
gpgcheck=0

[dvd-cluster-storage]
mediaid=1285193176.460470*
name=DVD for RHEL6
baseurl=file:///mnt/isoimage/ClusterStorage
enabled=1
gpgcheck=0

[dvd-vt]
mediaid=1285193176.460470*
name=DVD for RHEL6
baseurl=file:///mnt/isoimage/VT
enabled=1
gpgcheck=0

Install anything like in the example below to test if the DVD simulation of RHN repositories is successfull:

 

[root@rh6pw7 yum.repos.d]# telnet
-bash: telnet: command not found
[root@rh6pw7 yum.repos.d]# yum install telnet
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
dvd | 3.7 kB 00:00 ...
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-46.el6 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================
Package Arch Version Repository Size
===================================================================
Installing:
telnet x86_64 1:0.17-46.el6 dvd 58 k

Transaction Summary
===================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 58 k
Installed size: 109 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : 1:telnet-0.17-46.el6.x86_64 1/1

Installed:
telnet.x86_64 1:0.17-46.el6

Complete!
[root@rh6pw7 yum.repos.d]#

 

 

 

 

 
HTML Comment Box is loading comments...