Welcome to the most active Linux Forum on the web.
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!


Closed Thread
  Search this Thread
Old 03-01-2009, 11:38 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 7

Rep: Reputation: 0
yum local 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.

[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
Old 03-01-2009, 12:26 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closed Thread

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
Local YUM Repo lord loh. Linux - Software 2 05-28-2007 12:41 AM
FC5 yum-local + internet repo enable ? roh166 Fedora 1 02-20-2007 11:32 PM
Error message after setting a local repo for YUM Unforgiven79 Fedora 1 01-14-2007 10:21 AM
local yum repo error shams Fedora 1 12-24-2005 11:28 PM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:50 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