How To Create your Yum Repository in RHEL5
Hi All,
Here I want to explain the step by step process to create a yum repository in RHEL 5 Server....
mount /dev/hdb /mnt
(/dev/hdb is my dvd drive)
cd /mnt/RHEL5.../Server
rpm -ivh createrepo*
mkdir /var/redhat.repo
Now we are copying the RHEL 5 DVD to /var/server.repo...the reason why we named the folder with extenstion .repo is it will works perfectly...while yum tries to check the packages.
cp -rv /mnt/Rhel5../* /var/redhat.repo
Now we need to edit the configuration file of yum
vim /etc/yum.repos.d/rheldebuginfo.repo
add the following two lines in the file..
baseurl=file:///var/redhat.repo
enabled=1
(Note: before editing any configuration files..it is recommended to take the backup of that particular configuration file...)
createrepo /var/redhat.repo
yum clean all
yum list
That is it now we have created the yum repository...it is just a simple process...
Here I want to explain the step by step process to create a yum repository in RHEL 5 Server....
mount /dev/hdb /mnt
(/dev/hdb is my dvd drive)
cd /mnt/RHEL5.../Server
rpm -ivh createrepo*
mkdir /var/redhat.repo
Now we are copying the RHEL 5 DVD to /var/server.repo...the reason why we named the folder with extenstion .repo is it will works perfectly...while yum tries to check the packages.
cp -rv /mnt/Rhel5../* /var/redhat.repo
Now we need to edit the configuration file of yum
vim /etc/yum.repos.d/rheldebuginfo.repo
add the following two lines in the file..
baseurl=file:///var/redhat.repo
enabled=1
(Note: before editing any configuration files..it is recommended to take the backup of that particular configuration file...)
createrepo /var/redhat.repo
yum clean all
yum list
That is it now we have created the yum repository...it is just a simple process...
Comments
Post a Comment