Adding RedHat DVD as Repository

超级网迷+ 电脑迷+ 音乐迷
打印 被阅读次数

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.

在城里

登录后才可评论.