Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am looking for openjdk6-jre rpm for redhat 64bit.

I followed the instructions provided in the below site :
http://openjdk.java.net/install/

But when I try I am getting the below error:

[root@DCTXVM20 hita]# su -c "yum install java-1.6.0-openjdk"
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64 error was
[Errno 4] IOError:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

Any pointers where I can find the above rpm?

Thanks,

share|improve this question

migrated from stackoverflow.com Aug 23 '10 at 2:45

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Try this: yum clean all

If that doesn't work, look here:

http://www.pubbs.net/200907/fedora/63700-yum-cannot-retrieve-repository-metadata-for-epel.html

rpm --erase epel-release

and in case you don't have an epel-release package installed (it's included within Fedora 11 by accident), simply delete the epel.repo file.

EPEL is a repository for RHEL and/or CentOS.

PS: You really want to get "yum" working correctly.

But as a "Plan B" for getting the JDK, you can always try http://www.rpmfind.org

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.