实验01:YUM配置

      实验目标

通过yum配置安装gcc

      实验步骤

1、挂载光盘 

YUM的配置_第1张图片

 

2、 安装  RHEL5.9的图形环境

[root@localhost media]# ls /misc/cd

Cluster           RELEASE-NOTES-U9-as.html    RELEASE-NOTES-es.html

ClusterStorage    RELEASE-NOTES-U9-bn.html    RELEASE-NOTES-fr.html

EULA              RELEASE-NOTES-U9-de.html    RELEASE-NOTES-gu.html

GPL               RELEASE-NOTES-U9-en         RELEASE-NOTES-hi.html

README-as.html    RELEASE-NOTES-U9-en.html    RELEASE-NOTES-it.html

README-bn.html    RELEASE-NOTES-U9-es.html    RELEASE-NOTES-ja.html

3、修改YUM的配置文件

[root@localhost httpd-2.2.25]# cd /etc/yum.repos.d/

 [[email protected]]# ls rhel-debuginfo.repo

[root@localhost yum.repos.d]#cp rhel-debuginfo.repo rh-server.repo

 [[email protected]]# vim rh-server.repo

[root@localhost yum.repos.d]#

[server]    //

name=Red Hat Enter linux 5.9

baseurl=file:///misc/cd/Server

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

       结果验证

 测试

[root@localhost yum.repos.d]# yum list |wc -l

3431

 

      问题和经验总结

故障现象:怎么cd都显示不出光盘中的文件

解决办法:路径错误:正确路径 ls /misc/cd

光盘没连接,应该打上勾连接

           光盘挂载错误用的5.9的挂载5.10的,应该换一下