2012年10月18日 星期四

Yum Repository from CD-ROM/DVD-ROM

on XenCenter VM

* insert DVD/ISO to CD-ROM/DVD-ROM drive *

1. mount yum source iso to /mnt
--> mount /dev/xvdd /mnt

2. Create repository file
--> vi /etc/yum.repos.d/centos6.repo


[CentOS6-Repository]
name=CentOS6 repository
baseurl=file:///mnt
enabled=1
gpgcheck=0

3. Deny yum from network, in /etc/yum.repos.d/
--> mv CentOS-Base.repo  CentOS-Base.repo.bak

4. yum clean all

5. yum install xxxx


沒有留言:

張貼留言