One of the fun tools you can use is createrepo. It is not hard to use, for example create a directory (let's call it RHEL5 at the root) and copy all the rpm files off the CD media to this directory with no sub-directories if you have the room.
Install the createrepo package from rpmforge;
http://dag.wieers.com/rpm/FAQ.php#B
yum install createrepo
Then from the /RHEL5 directory type; createrepo /RHEL5
And create a /etc/yum.repos.d/local-Media.repo file, sample below;
[local-media]
name=Red Hat-$releasever - Media
baseurl=file:///RHEL5
gpgcheck=0
enabled=0
Then all one needs to do is something like; yum install foo --disablerepo=\* --enablerepo=local-media
Another thing one can try is creating / editing a RHEL-Media.repo file;
[media-rhel5]
name=RedHat-$releasever - Media
baseurl=file:///media/RedHat/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
This might work the with the CD's but I'm not sure, it does work with the DVD just fine.
And/or have a DVD image created from the CD ISO images using this;
http://mirror.chpc.utah.edu/pub/cent...ld/mkdvdiso.sh
Just open the file using any test editor for help with using this file one does need to make it executable after downloading.
chmod u+x mkdvdiso.sh
.