Chinaunix首页 | 论坛 | 博客
  • 博客访问: 34991
  • 博文数量: 6
  • 博客积分: 168
  • 博客等级: 入伍新兵
  • 技术积分: 100
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-18 17:32
文章分类
文章存档

2013年(1)

2012年(5)

分类: LINUX

2012-07-12 17:28:21

1.备份

/etc/yum.repos.d/rhel-debuginfo

2.把系统光盘挂载到/mnt/cdrom

原来是:

[rhel-debuginfo]

name=Red Hat Enterprise Linux $releasever - $basearch - Debug

baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/

enabled=0

gpgcheck=1

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

 

[rhel-debuginfo-beta]

name=Red Hat Enterprise Linux $releasever Beta - $basearch - Debug

baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/$basearch/Debuginfo/

enabled=0

gpgcheck=1

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

~        

修改为:

[Cluster]

name=Red Hat Enterprise Linux $releasever - $basearch - Debug

baseurl=file:///mnt/cdrom/Cluster

enabled=1

gpgcheck=0

gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release

 

[ClusterStorage]

name=Red Hat Enterprise Linux $releasever Beta - $basearch - Debug

baseurl=file:///mnt/cdrom/ClusterStorage

enabled=1

gpgcheck=0

gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-beta,file:///mnt/cdrom/RPM-GPG-KEY-redhat-release

 

[Server]

name=Red Hat Enterprise Linux $releasever - $basearch - Debug

baseurl=file:///mnt/cdrom/Server

enabled=1

gpgcheck=0

gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-releasea

 

[VT]

name=Red Hat Enterprise Linux $releasever - $basearch - Debug

baseurl=file:///mnt/cdrom/VT

enabled=1

gpgcheck=0

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

 

最后可以运行下命令:rpm --import /mnt/cdrom/RPM-GPG-KEY-redhat-releasea

3.测试通过

yum grouplist

yum groupinstall "X Window System"---想安装的服务,软件

startx测试下

4.reboot

阅读(1842) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~