1. Mount rhel disk on your linux box.
#mount -t iso9660 -o loop /tmp/rhel-server-5.6-x86_64-dvd.iso /mnt/
2. Install create repo for repository creation
#rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm
3. you have to install either ftp or http for yum setup, i chose vsftp
#rpm -ivh vsftpd-2.0.5-16.el5_5.1.x86_64.rpm
#/etc/init.d/vsftpd restart
4. Copy iso folder's rpm inside ftp home dir
#cp /mnt/rhel/Server/ /var/ftp/pub/rhelyum/
5. Create repo file for accesing yum repository it can be on yum server itsel for client machine also
cat /etc/yum.repos.d/iso.repo
[rhelyum]
name=RHEL Yum Server
baseurl=ftp://10.20.71.60/pub/rhelyum/
enabled=1
gpgcheck=0
#/etc/init.d/yum-updatesd restart
6. Test yum
#yum install httpd*
No comments:
Post a Comment