Yum with DVD only

It can help you to yum with DVD only without network.

mkdir -p /mnt/dvd
mount -o loop /home/ISO/CentOS-5.4-x86_64-bin-DVD.iso /mnt/dvd/
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.orig
vi /etc/yum.repos.d/dvd.repo

[dvd]
name=DVD
baseurl=file:///mnt/dvd
enabled=1
gpgcheck=0

Then , you can try "yum install xxx" using with DVD not from network now.


Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.