Red Hat 6.3 光盘yum源配置

mkdir /mnt/cdrom      新建挂载点
html


mount /dev/sr0 /mnt/cdrom      挂载光盘
网络


cd /etc/yum.repos.d/url


mv rhel-source.repo rhel-source.repo.bak       将原来的源备份好
spa


[root@localhost yum.repos.d]# vi CentOS-Media.repo   这里随便取名,要以.repo为后辍

[base]
name=RedHat
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
htm


yum install gcc       试试blog


网络源配置:it

http://qingwang.blog.51cto.com/505009/1551228/
gcc

http://www.ithao123.cn/content-3516809.html
配置