Share your knowledge at the LQ Wiki.
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 03-01-2009, 12:46 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 7

Rep: Reputation: 0
problem creating local yum repo

hi! I tried to create a local repository for rhce practice. i issued the command "createrepo /var/ftp/pub/gls/RPMS" where all the .rpm files are copied into. The repo was create succesfully and i edited the server1.repo file which i created manually in /etc/yum.repos.d folder.

After changing the path in server1.repo to point to the loc of the .rpm files, the command yum clean all and yum update were run, but the message below was prompted. What has been configured wrongly? Please advise. Thanks. (i tried using file:/// follow by the path to RPMS, it works fine, but can't get the http path to function)

[root@localhost RPMS]# pwd
[root@localhost RPMS]# yum clean all
Loading "security" plugin
Loading "rhnplugin" plugin
Repository rhel-debuginfo is listed more than once in the configuration
Cleaning up Everything
[root@localhost RPMS]# yum update
Loading "security" plugin
Loading "rhnplugin" plugin
Repository rhel-debuginfo is listed more than once in the configuration
This system is not registered with RHN.
RHN support will be disabled. [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: RPMS. Please verify its path and try again
[root@localhost RPMS]#

below are some of the info.
Location of repomd.xml

[root@localhost repodata]# ls
comps-rhel5-server-supplementary.xml other.xml.gz repomd.xml
filelists.xml.gz primary.xml.gz TRANS.TBL
[root@localhost repodata]# pwd
[root@localhost repodata]#
Location of server1.repo and the content, the ip is the repo server ip.
[root@localhost yum.repos.d]# pwd
[root@localhost yum.repos.d]# ls
rhel-debuginfo.repo server1.repo
[root@localhost yum.repos.d]#

name=Red Hat Enterprise Linux $releasever - $basearch - Debug

name=Local Repository from CD

Last edited by dlee12; 03-01-2009 at 12:51 PM.
Old 03-02-2009, 08:36 AM   #2
LQ Newbie
Registered: Feb 2009
Posts: 7

Original Poster
Rep: Reputation: 0
hi! anyone to help on this? Thanks.
Old 03-12-2009, 04:26 AM   #3
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
R u able to find the solution?
Old 08-13-2009, 04:49 AM   #4
LQ Newbie
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Hi Dlee12,

I'm quite new to this as well, did you delete the old repodata and use createrepo -g to recreate the repository?

Check out the article about configuring yum in RHEL5, search google for "Linux Tech Support: Configuring Yum in RHEL5"

Let me know if this solves anything for you.



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
yum local repo dlee12 Linux - Newbie 1 03-01-2009 01:26 PM
yum local repo dlee12 Linux - Newbie 1 03-01-2009 01:26 PM
Local YUM Repo lord loh. Linux - Software 2 05-28-2007 01:41 AM
Problem creating local Yum Repository DirkDiggler Linux - Software 1 05-25-2007 01:04 AM
local yum repo error shams Fedora 1 12-25-2005 12:28 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:40 PM.

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