View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-23-2010, 02:09 AM   #1
LQ Newbie
Registered: Jun 2010
Posts: 13

Rep: Reputation: 0
Question How to set yum repository on RHEL 5.1 ??

To set a yum repository i copied all the packages of Server folder from RHEL 5.1 DVD to my /home/repo , Some one told me that before making new repodata , delete the old folder named repodata and a file named TRANS.TBL which already exist in Server folder of RHEL 5.1 DVD.

After this i performed following steps:

1.[root@localhost ~]# cd /home/repo
2.[root@localhost repo]# rpm -ivh createrepo-0.4.4-2.fc6.noarch.rpm
3.[root@localhost repo]# createrepo -v /home/repo/

output of the above command in short is as follows::

I am not showing all the lines.
and so on

2156/2158 - busybox-1.2.0-3.i386.rpm
2157/2158 - vnc-4.1.2-9.el5.i386.rpm
2158/2158 - libvorbis-1.1.2-3.el5.0.i386.rpm

Saving Primary metadata
Saving file lists metadata
Saving other metadata

4. then i created a file
[root@localhost ~]# vi /etc/yum.repos.d/rhel.repo

contents of file are
name=my repository

5. now i am trying yum command

[root@localhost ~]# yum -y install httpd
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
Reading repository metadata in from local files
No Match for argument: httpd
Nothing to do

6. please tell me why instead of installing httpd package the above problem is occurring.
Is there any mistake done by me.
Old 06-23-2010, 03:30 AM   #2
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,105

Rep: Reputation: Disabled
just use the install media that is already set up.

also 5.1 is very,very old .The current is RHEL 5.5
please see the red hat sails page and but a license for access to the rhn
Old 06-23-2010, 03:42 AM   #3
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92

In addition to JohnVV's response above; do you have a subscription for RHEL for this machine?

If so you can register this machine with RHN; and this will automatically configure yum for you; as well as give you access to the latest available packages.

Using the install media as your repo, you're limiting yourself to packages that were released at the time of the creation of that media.

Lastly as per JohnVV, please consider upgrading to RHEL 5 update 5 which is the latest release.
Old 06-24-2010, 01:13 AM   #4
LQ Newbie
Registered: Jun 2010
Posts: 13

Original Poster
Rep: Reputation: 0
I have no subscription of this machine. It is only for my home use. Previously i configured yum repository and it was working fine with out any RHN registration. But i formatted my system and installed a fresh copy of RHEL 5.1, but now when i trying to configure yum repository it is give the above output when using yum command to install any package.

One thing more also tell me how to update from RHEL 5.1 to RHEL 5.5. Do i need to again install Linux with RHEL 5.5 DVD or by only updating some of the packages of existing RHEL 5.1 .
Old 06-24-2010, 01:19 AM   #5
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,105

Rep: Reputation: Disabled
to upgrade from 5.1 to 5.5 - buy a license from red hat

install CentOS 5.5

this is the community supported version of RHEL
Old 06-24-2010, 11:47 AM   #6
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Rep: Reputation: 0
Here i think the question is on how to make the local repository working on RHEL whether its 5.1 or 5.5. Even i tried the same and got the error. I don't know why its showing error on a local repository. Any answers on creating a working local repository ?
Old 06-24-2010, 01:39 PM   #7
Registered: Feb 2005
Location: UK
Distribution: Debian jessie
Posts: 33

Rep: Reputation: 16
Follow the steps like noted here, this worked perfectly for me.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
want to set up local yum repository linmix Linux - Software 4 04-23-2013 03:42 AM
how to create local yum repository...when show error set up update prosses justniik2000 Red Hat 1 12-31-2009 03:56 AM
yum repository for RHEL 3 cccc Red Hat 8 11-22-2008 02:48 PM
how to set up a yum repository sandpiper Linux - Newbie 1 06-03-2008 07:44 AM
after updating RHEL AS 4 w/ CentOS' YUM repository.... guest cAos 2 03-17-2005 10:53 PM

All times are GMT -5. The time now is 08:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration