rhel yum for quick installs

  • su rot
  • mkdir /mnt/dvd
  • df
  • umount /dev/dsb1
  • mount -rt iso9660 /dev/sdb1 /mnt/dvd
  • cp /mnt/dvd/media.repo /etc/yum.repos.d
  • vi /etc/yum.repos.d/media.repo
  • under the name write
    • baseurl=file:///mnt/dvd/
    • !wq
  • yum list available
  • yum install bind ntp .... etc
  • umount /dev/sdb1/

    The repo file looks something like this

[rhel71]
name=rhel 71
baseurl=file:///mnt/dvd/
enabled=1
gpgcheck=0