[SOLVED] Please help when used YUM in RHEL 5.8 64bit
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried used YUM to install the necessary packages for Oracle installation.
I used RHEL (redhat enterprise linux) 5.8 64 bit.
Before, someone edited YUM configuration file (I did not know where !!). And now, when I run any commands with YUM (ex: yum install ..., yum update ...., yum list ...., ), I received same error message:
-------------------------------
Loaded plugins: product-id, rhnplugin, security, subscription-manager
Updating certificate-based repositories.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-5. Please verify its path and try again
-------------------------------
From /etc/yum.repos.d, i have file with name is public-yum-el5.repo. Some contents look like:
-----------------
[el5_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1
[el5_ga_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/0/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
[el5_u1_base]
name=Enterprise Linux $releasever Update 1 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/1/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
...
-----------------
I tried to yum list gcc, my console appear:
-----------------
Loaded plugins: rhnplugin, security
el5_latest | 1.4 kB 00:00
el5_latest/primary | 13 MB 00:10
el5_latest 10974/10974
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-x86_64-server-5. Please verify its path and try again
-----------------
Now, I solved this problem. The root of cause is when use YUM CLEAN ALL, it deleted repomd.xml. I copied 2 files: repomd.xml and primary.xml.gz from other server to /var/cache/yum/rhel-x86_64-server-5, and it work again.
Regards,
Last edited by tle94; 03-04-2013 at 01:04 AM.
Reason: Solved problem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.