Bad experience with Oracle Public Yum Server?
It used to be extremely slow for a while but since it is now mirrored by Akamai and has various access points in the world, performance is no longer an issue.
yes we have a subscription but I've followed the doc but it never tells me the IP/URL where to point to in the yum.repos.d directory and I continue to get errors stating that i cannont retrieve repository metadata and Please verify it's path and try again. I know that the path is wrong.... Im trying to find the right one.
so Just to verify I did install the public-yum el5 repo on my box and I continue to get the same error.
[root@server yum.repos.d]# yum list
Loaded plugins: security
Error: Cannot retrieve repository metadata (repomd.xml) for repository: el5_x86_64_latest. Please verify its path and try again
My yum.conf :
# more yum.conf
# Note: yum-RHN-plugin doesn't honor this.
# installonly_limit = 3
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
What am I missing?
Do you have direct access to the Internet? That error usually indicates that the server cannot connect directly to http://public-yum.oracle.com. The configuration from public-yum.oracle.com is correct, it just needs access.
If you need a proxy, you should configure the proxy in /etc/yum.conf (for all repos) or in public-yum-ol5.repo (just for the public-yum repositories).
Internet access is intact. We are able to download other files directly from the internet.
I was able to run '
wget http://public-yum.oracle.com/public-yum-el5.repo' successfully.
So I do not think that is the problem
You shouldn't have to create any directories under /var/cache/yum - this will happen automatically. Besides, not being able to download the metadata from public-yum.oracle.com occurs before.
However, if you have el5_latest enabled, you should disable it and enable ol5_latest instead. Also, disable ol5_u7_base, because everything is stored in ol5_latest is newer than anything in the _base channels. The only channel you need enabled is ol5_latest, in fact.
Sorry, my bad: the repo name is el5_latest but it now points to the OL5 location. Sorry for the confusion, there.
That's the only repo that's required and in fact you should disable any base channels if you use latest, because they will conflict. It really is an either/or scenario: either use latest or enable a base channel.
You may also want to keep in mind that when you use
wget http://public-yum.oracle.com/public-yum-el5.repoit does not overwrite the existing file and uses and adds a number to the filename instead. After you cleaned up your repository configuration files you can clean up the cache using yum clean all.