LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 03-01-2009, 12:46 PM   #1
dlee12
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
/var/ftp/pub/gls/RPMS
[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.
http://192.168.1.106/var/ftp/pub/gls...ta/repomd.xml: [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
/var/ftp/pub/gls/RPMS/repodata
[root@localhost repodata]#
--------------------------------------
Location of server1.repo and the content, the ip 192.168.1.106 is the repo server ip.
[root@localhost yum.repos.d]# pwd
/etc/yum.repos.d
[root@localhost yum.repos.d]# ls
rhel-debuginfo.repo server1.repo
[root@localhost yum.repos.d]#



[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

[RPMS]
name=Local Repository from CD
baseurl=http://192.168.1.106/var/ftp/pub/gls/RPMS/
enabled=1
gpgcheck=0
---------------------------------------

Last edited by dlee12; 03-01-2009 at 12:51 PM.
 
Old 03-02-2009, 08:36 AM   #2
dlee12
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
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,443
Blog Entries: 6

Rep: Reputation: 51
R u able to find the solution?
 
Old 08-13-2009, 04:49 AM   #4
Jeroen.Huisman
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.

Jeroen.
 
  


Reply


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


All times are GMT -5. The time now is 03:38 AM.

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