配置yum

#mkdir /RED_HAT --建立存放目录

#umount /media/RH……

#mount /dev/hd0 /RED_HAT

修改文件/etc/yum.repos.d/rhel-debuginfo.repo,在文件最后增加

# vi /etc/yum.repos.d/rhel-debuginfo.repo

[rhel-server]
name=Red Hat Enterprise Linux Server
baseurl=file:///RED_HAT/Server
enabled=1
gpgcheck=0

[Cluster]
name=Red Hat Enterprise Linux Server
baseurl=file:///RED_HAT/Cluster
enabled=1
gpgcheck=0

[ClusterStorage]
name=Red Hat Enterprise Linux Server
baseurl=file:///RED_HAT/ClusterStorage
enabled=1
gpgcheck=0


--如何使用yum
yum install gcc*

你可能感兴趣的:(yum)