2012/03/06

Updating your CentOS system with DVD

### Updating from DVD
When you don't have enough network connection with CentOS/RHEL system.
Try DVD updating!!

Mounting DVD media.
# mkdir /cdrom
# mount /dev/sr0 /cdrom
or
# mount -o loop xxxx-dvd.iso /cdrom



Making dvd repository for yum's updating.
CentOS5,6/RHEL6:
 # cat >/etc/yum.repos.d/dvd.repo
[dvd]
baseurl=file:///cdrom
[send ctl-D]

RHEL5:
 # cat >/etc/yum.repos.d/dvd.repo
[dvd]
baseurl=file:///cdrom/Server/
[send ctl-D]


Updating with "yum" command.
# yum -y --nogpgcheck --enablerepo=dvd [--disablerepo=\*] update

0 件のコメント: