Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently I am having JRE 1.6.0_20. How do I downgrade it to JRE 1.6.0_17?

How can I downgrade?

I'm using Ubuntu 10.04 LTS.

share|improve this question
1  
You do know there is a security issue relating to remote code execution with Java < 1.6.0_20 don't you? Is there any reason you need that specific version such as missing features? – Mokubai May 13 '10 at 12:36
up vote 3 down vote accepted

When you downgrade, you'll probably want to keep it that way (having the update manager ignore the newer version), this list thread and the APT-HowTo seem to go through what's needed to do that.

Specifically check out How to keep a mixed system:

# apt-get install package=version

And How to keep specific versions of packages installed (complex), adding this to /etc/apt/preferences:

Package: <package>
Pin: <pin definition>
Pin-Priority: <pin's priority>

Update: To clarify some things: 1. Ubuntu 10.04 does not use Sun's JRE by default. Infact you need to enable repositories to install it.

As stated in my comments, just follow the above pattern:

apt-get install default-jre=1.6.0_17 

Or for Sun's

apt-get install sun-java6-jre=1.6.0_17 

But I doubt that will work, considering that the latest version of Sun's JRE is listed as 6.20.

share|improve this answer
    
Thanks Tim Lyte for your time , i am trying it by downloading rpm packages externally . will let u know if it fails. – Jigar Joshi May 13 '10 at 12:53
    
RPMs are meant for ReadHat (Fedora/CentOS/Etc), not Ubuntu/Debian. Look for a .deb file if you're trying to downgrade with a downloaded package. – Tim Lytle May 13 '10 at 13:57
    
no it takes older version (newer version previously installed), in my case it is java can you specify how can i install java jre&jdk 1.6.0_17 by apt-get ? – Jigar Joshi May 13 '10 at 14:08
    
It really depends on what package you're installing. For Ubuntu's default (in 10.04) it would be apt-get install default-jre=1.6.0_17 Just follow the pattern given in my answer. – Tim Lytle May 13 '10 at 14:31
    
in ubuntu 10.4 default version of sun-java6-jre is 1.6.0_20 i want 1.6.0_17 – Jigar Joshi May 13 '10 at 14:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .