LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Repo syntax issue rhel/centos (https://www.linuxquestions.org/questions/linux-newbie-8/repo-syntax-issue-rhel-centos-4175436778/)

adol83 11-12-2012 10:06 AM

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

unSpawn 11-12-2012 10:37 AM

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.

adol83 11-13-2012 04:42 PM

So i should create an repond.xml file for repository or it won't work?

unSpawn 11-13-2012 05:43 PM

Try 'yum info createrepo'.

adol83 11-14-2012 08:36 AM

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)

unSpawn 11-14-2012 08:50 AM

Quote:

Originally Posted by adol83 (Post 4829203)
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 :-]

adol83 11-14-2012 09:26 AM

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 :confused:

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

I will try to understand this damned repomd.xml what does it need

unSpawn 11-14-2012 11:42 AM

Quote:

Originally Posted by adol83 (Post 4829253)
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 (Post 4829253)
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 (Post 4829253)
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.

chrism01 11-14-2012 07:06 PM

https://code.google.com/p/iredmail/w...Yum_Repository - a howto on creating a repo from ISOs.

John VV 11-14-2012 08:14 PM

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

adol83 11-15-2012 05:00 AM

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..

kherrscher 03-05-2015 01:02 PM

Cannot retrieve repository metadata (repomd.xml) for repository: epel.
 
I get the error message above when trying to install xrdp from epel-release-6-8.noarch.rpm. My machine is a registered RHN RHEL6.2 server. I unsuccessfully tried "yum clean all" and "yum info createrepo" , but I still get the same error. Is there a config file somewhere that I can point to the /var/cache/yum/x86_64/6Server/rhel-x86_64-server-6/repomd.xml file?

kherrscher 03-05-2015 03:35 PM

When I do a locate command to find repomd.xml, I see it in other repositories, but not the /var/cache/yum/x86_64/6Server/epel/ repository, which does infact, exist next to the other repos that RHEL 6 does see as shown below:

[root@DOCLNXTC1 herrscherk]# locate repomd.xml
/root/.itc-deployment/repo_cache/repodata/repomd.xml
/var/cache/yum/x86_64/6Server/dvd/repomd.xml
/var/cache/yum/x86_64/6Server/rhel-x86_64-server-6/repomd.xml


All times are GMT -5. The time now is 07:00 AM.