When you install RHEL5, installation will ask you to supply registration key for RHN. If you have nokey, then your yum will not work.
Let's say sometime after installation you need to install new package. You can do it by downloading RPM from the internet, or you can set your yum to look at installation CD/DVD.
First create file "rhel-iso.repo" in /etc/yum.repos.d
[root@rhel5 yum.repos.d]# cat rhel-iso.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux ISO
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=0
[root@rhel5 yum.repos.d]#
Then mount installation CD/DVD to /mnt/cdrom
Done!
We have 3 guests and no members online