1) Mount the dvd in /mnt/dvd path.
2) Install the createrepo RPM from the RHEL 5.2 DVD ( which I have mounted to /mnt/dvd ).
# rpm -ivh /mnt/dvd/Server/createrepo-0.4.11-3.el5.noarch.rpm
# cd /mnt
# createrepo .
3) Create the YUM repository pointing back at the newly created repository metadata.
# vim /etc/yum.repos.d/dvdrhel.repo
[MailRepo]
name=MailRepo
baseurl=file:///mnt/
enabled=1
gpgcheck=0
4) Update YUM to have it pick up the new repository.
# yum clean
5) Test by listing the available packages.
# yum list
No comments:
Post a Comment