LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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


Closed Thread
  Search this Thread
Old 03-01-2009, 11:40 AM   #1
dlee12
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
/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
---------------------------------------
 
Old 03-01-2009, 12:26 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration