#! /bin/bash
Read-p "Make sure to insert the System CD and press ENTER to continue"
Mkdir-p/mnt/centos6.5
mount/dev/cdrom/mnt/centos6.5
Cat >/etc/yum.repos.d/centos-debuginfo.repo << EOF
[Cluster]
Name=cluster Directory
Baseurl=file:///mnt/centos6.5/cluster
Enabled=1
Gpgcheck=0
[Clusterstorage]
Name=clusterstorage Directory
Baseurl=file:///mnt/centos6.5/clusterstorage
Enabled=1
Gpgcheck=0
[Server]
Name=server Directory
baseurl=file:///mnt/centos6.5/server/
Enabled=1
Gpgcheck=0
[VT]
NAME=VT Directory
Baseurl=file:///mnt/centos6.5/vt
Enabled=1
Gpgcheck=0
Eof
Sed-e ' 411s/url/\ "\/mnt\/rhel5\/server\"/g '/usr/lib/python2.4/site-packages/yum/yumrepo.py >/tmp/123
Mv-f/tmp/123/usr/lib/python2.4/site-packages/yum/yumrepo.py
Yum Install mysql*
This article is reproduced from Visia Technical Forum: http://www.w4ya.com
Make Red Hat local disc yum