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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-12-2012, 10:06 AM
|
#1
|
|
Member
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92
Rep:
|
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
|
|
|
|
11-12-2012, 10:37 AM
|
#2
|
|
Moderator
Registered: May 2001
Posts: 24,779
|
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.
|
|
|
|
11-13-2012, 04:42 PM
|
#3
|
|
Member
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92
Original Poster
Rep:
|
So i should create an repond.xml file for repository or it won't work?
|
|
|
|
11-13-2012, 05:43 PM
|
#4
|
|
Moderator
Registered: May 2001
Posts: 24,779
|
Try 'yum info createrepo'.
|
|
|
|
11-14-2012, 08:36 AM
|
#5
|
|
Member
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92
Original Poster
Rep:
|
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.
|
|
|
|
11-14-2012, 08:50 AM
|
#6
|
|
Moderator
Registered: May 2001
Posts: 24,779
|
Quote:
Originally Posted by adol83
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.
|
11-14-2012, 09:26 AM
|
#7
|
|
Member
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92
Original Poster
Rep:
|
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
|
|
|
|
11-14-2012, 11:42 AM
|
#8
|
|
Moderator
Registered: May 2001
Posts: 24,779
|
Quote:
Originally Posted by adol83
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
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
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.
|
11-14-2012, 07:06 PM
|
#9
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 14,956
|
|
|
|
|
11-14-2012, 08:14 PM
|
#10
|
|
Guru
Registered: Aug 2005
Posts: 9,521
|
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.
|
|
|
|
11-15-2012, 05:00 AM
|
#11
|
|
Member
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92
Original Poster
Rep:
|
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..
|
|
|
|
| Thread Tools |
Search this 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:38 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|