Yum Install RPM Packages from Install CD

Install RPM packages from the install CD

The install CD has to be one CD. If the install CD has multiple disks, then find the install DVD. If install DVD is not an option, then merge multiple iso files into one, and follow the instruction in the next section.

For CentOS, check out the file /etc/yum.repos.d/CentOS-Media.repo. There are several pre-set mount points for your ISO. If your ISO mount point is not included, add it. Then point YUM to your media repo using

#yum install SomeRPM --disablerepo=\* --enablerepo=c5-media

if you want to ban external access, the disablerepo token is the key.

Install RPM packages from the install CD's ISO file in local hard disk

  1. Copy the entire iso file onto your local hard disk.
  2. mkdir /mnt/iso
  3. mount -o loop path-to-disk.iso /mnt/iso
  4. Add /mnt/iso to the "c5-media" section in /etc/yum.repos.d/CentOS-Media.repo.
  5. Invokde YUM:
    #yum search someRPM --disablerepo=\* --enablerepo=c5-media

 

Comments

Thanks

Thanks from Brazil :D