Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-15-2006, 12:42 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 6

Rep: Reputation: 0
Exclamation How to install two versions of Java using RPMs and have each of them co-exist??

Currently we are running Java 1.42 using RPM on our SUSE box..

I would like to install Java 1.50 on it to use the Java 5 features, BUT also keep java 1.42 on because some of our scripts we run require 1.42 ..

I want to leave /usr/bin/java (currently 1.42) under this directory, and install /usr/bin/java1.5 for version 1.5.. how can I achieve this?

Last edited by kitkit201; 12-15-2006 at 12:49 PM.
Old 12-15-2006, 01:12 PM   #2
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
Why not simply install the second version from bin to a folder of your choice?
Old 12-15-2006, 01:14 PM   #3
LQ Newbie
Registered: Sep 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Originally Posted by Boby
Why not simply install the second version from bin to a folder of your choice?
how do I go about doing that in RPM? If I do a "rpm -i java-1.5.0..." it will overwrite the previous version in /usr/bin.. that's what im trying to avoid..
Old 12-15-2006, 01:57 PM   #4
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
What you are trying to do is almost impossible without hacking on rpm spec files and rebuilding rpms. The java rpms are designed in such a way that they uninstall older releases if found on a system. Your best bet is installing one version using rpm and then install the other using a bin file as suggested above.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to switch java versions... markw8500 Programming 3 09-24-2006 07:54 PM
Using two versions of Java UmneyDurak Linux - Software 1 10-02-2005 01:32 AM
May 2 versions of the same rpms existing in just 1 Linux system? jiapei100 Linux - General 3 03-12-2005 06:16 PM
Multiple JAVA Versions / DB2 8.1 / SUSE 8.2 byfaithalone Linux - Newbie 1 10-15-2003 03:35 PM
Earlier versions of gramps rpms marlaina1 Linux - Software 0 05-01-2002 02:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration