Friday, January 21, 2011

yum setup on Redhat

yum setup on Redhat

Situation :- i insatlled Redhat 5.5, 64bit then try to install virtulization,KVM but lots of depencies error.

Solution

then i create local repo file to install by YUM,for that i copy all media under dir eg. /redhatmedia/redhatdvd/...

then create conf file

#vi /etc/yum.repos.d/media.repo

[dir1]
mediaid=34336363.878563
name=Redhat DVD
baseurl=file:///redhatmedia/redhatdvd/vt
enabled=1
gpgcheck=0

[dir2
mediaid=34336363.878563
name=Redhat DVD
baseurl=file:///redhatmedia/redhatdvd/server
enabled=1
gpgcheck=0

[dir3]
mediaid=34336363.878563
name=Redhat DVD
baseurl=file:///redhatmedia/redhatdvd/cluster
enabled=1
gpgcheck=0

[dir4]
mediaid=34336363.878563
name=Redhat DVD
baseurl=file:///redhatmedia/redhatdvd/cluster-storage
enabled=1
gpgcheck=0



Save file.

*** mediaid u can find in dvd from file .discinfo

After this run

#yum clean all

then

#yum groupinstall kvm -y

around 30 depencies installed with size 22MB with in 1 min.

1 comments:

Anonymous said...

awesome!!