LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-12-2012, 10:06 AM   #1
adol83
Member
 
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92

Rep: Reputation: 1
Repo syntax issue rhel/centos


Hello again,

i need to understand once for all the syntax of files.repo.

When i need a repository i create under /etc/yum.repos.d/ the repository file

goofy.repo

with this syntax

[repository_name]
[goofy]
baseurl=ftp:///mydirectory/myrepodir
gpgcheck=0

---
Myrepodir contains all the *.rpm files i need

when i exit and save i get anytime this error

Code:
ftp:///mydirectory/myrepodir/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: repobase. Please verify its path and try again
What am i wrong for? How can i just say to my rhel/centos system
"Ehy, for rpm look inside /mydirectory/myrepo" ?

Thanks
 
Old 11-12-2012, 10:37 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,257
Blog Entries: 54

Rep: Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841
baseurl=ftp:///mydirectory/myrepodir should probably read baseurl=ftp://myserver/mydirectory/myrepodir. If that was a typo then check if /mydirectory/myrepodir/repodata/repomd.xml exists on the server, if the user has access rights elif check your FTP daemon logs for clues.
 
Old 11-13-2012, 04:42 PM   #3
adol83
Member
 
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92

Original Poster
Rep: Reputation: 1
So i should create an repond.xml file for repository or it won't work?
 
Old 11-13-2012, 05:43 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,257
Blog Entries: 54

Rep: Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841
Try 'yum info createrepo'.
 
Old 11-14-2012, 08:36 AM   #5
adol83
Member
 
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92

Original Poster
Rep: Reputation: 1
Code:
[root@localhost bin]# yum info createrepo
Loaded plugins: refresh-packagekit, rhnplugin
Repository 'repobase' is missing name in configuration, using id
This system is not registered with RHN.
RHN support will be disabled.
epel                                                                                                         | 4.3 kB     00:00     
ftp:///mydirectory/myrepodir/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: repobase. Please verify its path and try again
This is the command's output.

I'd rather create manually my repo file than using the tool.
Oh, maybe it's a clue that my release is Red Hat Enterprise Linux 6 ? (i have a code but i still have not inserted)

Last edited by adol83; 11-14-2012 at 08:39 AM.
 
Old 11-14-2012, 08:50 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,257
Blog Entries: 54

Rep: Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841
Quote:
Originally Posted by adol83 View Post
I'd rather create manually my repo file than using the tool.
Oh, maybe it's a clue that my release is Red Hat Enterprise Linux 6 ? (i have a code but i still have not inserted)
No sweat. Generally speaking Linux is all about freedom: the freedom to install documentation but not use it, the freedom to not look up protocols and standards, the freedom to pay for Licensing but not use it, the freedom to (not) learn from doing things as inefficiently as possible, the freedom to fsck up intentionally and still be unencumbered to ask for (and ignore) advice.
A lot of people handle these freedoms well :-]
 
1 members found this post helpful.
Old 11-14-2012, 09:26 AM   #7
adol83
Member
 
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92

Original Poster
Rep: Reputation: 1
Talking

I'm trying to understand this as well, sometimes to understand concepts you need more time to look its application.
And i still trying to understand if Rhel is free or not

Last person i said "i'm using red hat" replied "ehy, rhel it's for payment why you don't switch to centOs?"

I will try to understand this damned repomd.xml what does it need
 
Old 11-14-2012, 11:42 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,257
Blog Entries: 54

Rep: Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841
Quote:
Originally Posted by adol83 View Post
I'm trying to understand this as well, sometimes to understand concepts you need more time to look its application.
OK, then go do that, the repodata format isn't a secret. The "genpkgmetadata.py" from the createrepo package is just a Python script, I'm sure Red Hat or Fedora or the Yum developers have repodata documentation and if you search around you'll find informative articles like The Anatomy of a yum repository - a look under the hood of the Skype repo for i586.


Quote:
Originally Posted by adol83 View Post
And i still trying to understand if Rhel is free or not
You can run Red Hat without buying support but getting updates via RHN requires a subscription. If you want to know more then invest time reading. Red Hat has had proper documentation since releasing Red Hat Linux, they have a web site full of information (including licenses) and else representatives you can contact.


Quote:
Originally Posted by adol83 View Post
Last person i said "i'm using red hat" replied "ehy, rhel it's for payment why you don't switch to centOs?"
I'm not going to comment on that except to say it depends on the context and who's making the statement.
 
1 members found this post helpful.
Old 11-14-2012, 07:06 PM   #9
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,264

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
https://code.google.com/p/iredmail/w...Yum_Repository - a howto on creating a repo from ISOs.
 
Old 11-14-2012, 08:14 PM   #10
John VV
Guru
 
Registered: Aug 2005
Posts: 12,895

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
on RHEL
Quote:

This system is not registered with RHN.
RHN support will be disabled.
THAT is a SHOW STOPPER
you are dead in the water until you register it with red hat and buy the required license

-- options --
install the current ( AND FREE ) CentOS 6.3
or buy $$$ the red hat license
or
port the RHEL install to cent -- it is relatively easy .


red hat is "free"
yes and no
free to use
BUT you do not install any software that is not on the install disk
and that IS OUT OF DATE

you are paying red hat for the bug fixes and software updates and for the tech support

Last edited by John VV; 11-14-2012 at 08:20 PM.
 
Old 11-15-2012, 05:00 AM   #11
adol83
Member
 
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92

Original Poster
Rep: Reputation: 1
This is the second time i wrote to Rhel for support and licensing and they didn't reply at all, I guess i will activate my license number so i will be able to ask about pricing.

CentOs will be installed on my laptop.

Thank you anyway..
 
  


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
rhel 5 repo not working pardoxx Linux - Newbie 3 02-23-2012 12:35 AM
RHEL 6 REPO's kraziekris Linux - Enterprise 11 01-05-2012 02:47 PM
building a local RHEL repo mzrh Linux - Enterprise 1 09-28-2010 09:33 PM
RHEL 5 own repo psix Linux - Server 5 06-27-2009 11:34 PM
RHEL/CentOS repo structure creedog Linux - Enterprise 9 06-20-2009 09:48 AM


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