超级网迷

超级网迷+ 电脑迷+ 音乐迷
个人资料
正文

Adding RedHat DVD as Repository

(2010-11-19 21:46:42) 下一个
1) First, mount your RedHat DVD.
- Make the mount point:
  mkdir /mnt/dvd
- Mount the DVD:
  mount /dev/cdrom /mnt/dvd

2) Clean all cached data:
- yum clean all

3) Remove all existing repositories
- rm  -rf /etc/yum.repos.d/*.repo

4) Create your own repository file
- vi /etc/yum.repos.d/rhel-dvd.repo

Copy and paste the following lines, and save it.
##############################
[dvd]
name=Red Hat Enterprise Linux Installation DVD
baseurl=file:///mnt/dvd
enabled=1
gbcheck=0
##############################

5) Launch the Package Manager GUI. That's it.

在城里

[ 打印 ]
阅读 ()评论 (0)
评论
目前还没有任何评论
登录后才可评论.