Using RHEL5.3 DVD as a Yum repository.

I have a RHEL5 DVD but it is difficult to install a package using rpm because I need to manually add all dependent packages. Here is now I create a Yum reposiroty so that I can use yum to install these packages. Note that the DVD is automatically mounted as /media/RHEL_5.1 x86_64 DVD.

> cd /media/RHEL5_5.1\\ x86_64\\ DVD/Client
> rpm -ihv createrepo-0.4.4-2.fc6.noarch.rpm
> cd /home/blah/some_dir
> createrepo -vpo /home/blah/some_dir /media/RHEL5_5.1\\ x86_64\\ DVD
> cd /home/blah/some_dir
> ln -s /media/RHEL5_5.1\\ x86_64\\ DVD/Client Client
> ln -s /media/RHEL5_5.1\\ x86_64\\ DVD/Workstation Workstation

Then create a file /etc/yum.repos.d/DVD.repo with the following content

[dvd]
name=RHEL4 DVD
baseurl=file:///home/blah/some_dir
enabled=1
gpgcheck=0

Run
> yum update

and you are done.

Comments:

this information is very useful to me

Posted by mohanravi87 on February 18, 2010 at 04:02 PM PST #

Thanks a lot, very nice guide!

Posted by roman_arzum on July 11, 2010 at 07:45 PM PDT #

Thanks a lot, buddy. You really helped save my hide for today, as I was growing tired of installing hundreds of dependencies...

Posted by Robin Molnar on July 20, 2010 at 10:32 PM PDT #

yum clean all
before yum update

Posted by Roberto Hdz on October 05, 2010 at 10:20 AM PDT #

Nice guide, it helped me a lot! Thanks!

Posted by Juan Perez on November 16, 2010 at 02:01 AM PST #

AWESOME it works!!!!!

Posted by adam on January 07, 2011 at 02:39 AM PST #

Awesome, works like a champ!!!!

Posted by Roberto on January 08, 2011 at 01:06 AM PST #

Nice info.....working Good

Posted by daveet on February 13, 2011 at 03:24 PM PST #

Thanks a lot Murali,

I was able to use a RHEL 5.5 DVD and create the yum repository.

I was searching for this since I had very little disk space on the VM on which I was running RHEL 5.5

Thanks and regards,
Manju

Posted by Manju on March 14, 2011 at 11:23 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

murlee

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today