Monday, June 14, 2010

Yum repository using RHEL DVD

Hi Folks,

Here's a trick to create YUM local repository using your RHEL DVD.

1. Insert your DVD or ISO Image if your using VMware.
2. Then mount the DVD
mkdir /mnt1
mount /dev/cdrom /mnt1
3. Now pointing the yum repository file
cd /etc/yum.repos.d/
vi rhel5.repo
#Add this lines in the rhel5.repo file
[rhel5]
name=Red Hat Enterprise Linux 5
baseurl=file:///mnt1/Server
enabled=1
gpgcheck=0

Save and exit
4. That's it you have your own local Yum repository.

Note:Only root can have access of using yum....!!!!!!!!!!!!!!

Try: #yum info yum
[root@rhel5demo ~]# yum info yum
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
rhel-debuginfo | 1.3 kB 00:00
rhel5 | 1.3 kB 00:00
Installed Packages
Name : yum
Arch : noarch
Version : 3.2.19
Release : 18.el5
Size : 3.1 M
Repo : installed
Summary : RPM installer/updater
URL : http://linux.duke.edu/yum/
License : GPLv2+
Description: Yum is a utility that can check for and automatically download and
: install updated RPM packages. Dependencies are obtained and
: downloaded automatically prompting the user as necessary.

[root@rhel5demo ~]#

No comments: