Redhat - mount the distribution disc and use the disc as repository for yum install

-- create another new mount point for the Linux distribution disk (repository)
[root@MYLINUX0 abc_share]# mkdir /mnt/repo

-- This time I just want to mount on the command line and don't want to mount on everytime during system boot.
[root@MYLINUX0 abc_share]# mount -o loop /mnt/abc_share/rhel-server-6.2-x86_64-dvd.iso  /mnt/repo

-- Create an entry in fstab to mount the Redhat disk automatically on every boot
[root@MYLINUX1 repo]# cat /etc/fstab

/mnt/abc_share/rhel-server-6.2-x86_64-dvd.iso /mnt/repo udf,iso9660 user,loop 0 0

-- update yum repository list.
[root@MYLINUX1 repo]# nano /etc/yum.repos.d/rhel-cd.repo

name=Red Hat Entabcrise Linux $releasever - $basearch - CD

-- ask yum to refresh all the cache (so that yum will read the repository information again.
[root@MYLINUX1 repo]# yum clean all

-- Now I can install package via my Redhat disc.
yum install -y perl-Net-SSLeay
yum install -y gcc
yum install -y firefox
yum install -y compat-libstdc++-33
yum install -y compat-glibc
yum install -y apr
yum install -y ksh

yum groupinstall -y Desktop


Popular Posts