Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-09-2006, 10:38 AM
|
#1
|
LQ Newbie
Registered: Aug 2005
Distribution: RedHat, Ubuntu
Posts: 14
Rep:
|
How does RPM work?
I'm running RedHat, and want to install the Java SDK 1.5 (I'm currently using 1.4). This isn't a package that is available under up2date, as near as I can tell from the RedHat Network website (rhn.redhat.com). So I'd like to install it using RPM. Everything else on my computer has been installed using up2date, and I'm worried that RPM will conflict with up2date.
Also, I'm wondering what exactly RPM and up2date do to "install" software. For example, I see some symbolic links in /usr/bin, and am guessing that these links were created by up2date? If I use RPM to update Java, will I need to update all of those symbolic links to point to the new JVM?
(As you can see, I know just enough to be dangerous, but not enough to be useful.)
Thanks for the help!
Chris
|
|
|
03-09-2006, 11:00 AM
|
#2
|
Member
Registered: May 2005
Posts: 101
Rep:
|
up2date is as far as I know nothing else but a rpm-frontend (somebody correct me please if Iīm wrong).
To install/ update your Java SDK just download the latest version from java.sun.com, open up a terminal, become root and then type
Code:
rpm -Uhv java-whatever.rpm
This should work for all rpm-based distributions. For more information about rpm type The symbolic links will be created by rpm, at least the ones nescassary to run Javaprograms. If youīre developer you maybe have to create your own symbolic links in /usr/bin (so did I under Mandriva 2006)
|
|
|
03-09-2006, 11:02 AM
|
#3
|
Member
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55
Rep:
|
JVM installer creates folders and files in a particular folder which you have chose.
For example: you set folder containing JVM is /home/data/jvm, and installation of jvm's installed in this folder
|
|
|
03-09-2006, 11:30 AM
|
#4
|
LQ Newbie
Registered: Aug 2005
Distribution: RedHat, Ubuntu
Posts: 14
Original Poster
Rep:
|
Thanks for the tips.
When I run
Code:
rpm -Uhv jdk-1_5_0_06-linux-i586.rpm
I get a message saying that the package is already installed. So I typed
and found out that the version of Java that I'm running is 1.4.2. Am I doing something wrong? I also see something about gij, which appears to be a GNU compiler for Java?
Thanks.
|
|
|
03-09-2006, 11:37 AM
|
#5
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
Something to think about:
which java will tell you the path to your java executable. This may be a link pointing to your (old) java1.4.2, check this with ls -al /path/to/java. If it is a link you'll need to delete it, and make a new link pointing to the java executable in your new java1.5.0
Or maybe I am barking up the wrong tree here!.
HTH
|
|
|
03-09-2006, 11:56 AM
|
#6
|
Member
Registered: Jun 2004
Location: West Virginia
Distribution: Gentoo, Debian
Posts: 52
Rep:
|
If you're interested in learning about how rpm works, check this out:
http://www.rpm.org/max-rpm/
It's probably the most comprehensive rpm documentation there is.
|
|
|
03-09-2006, 12:06 PM
|
#7
|
Member
Registered: May 2005
Posts: 101
Rep:
|
Seems you have two JDK versions now... but it doesnīt matter because different java versions donīt conflict. Itīs just up to you which one to choose.
My Java is installed in /usr/java/jdk1.5.0_06/ so I guess itīs the same on your system. There are two possibilities for you now: delete the old symbolic link and either create a new one or add /usr/java/jdk1.5.0_06/jre/bin to your path. Or donīt do anything and invoke the new java on the commandline when needed.
|
|
|
03-09-2006, 01:00 PM
|
#8
|
LQ Newbie
Registered: Aug 2005
Distribution: RedHat, Ubuntu
Posts: 14
Original Poster
Rep:
|
It looks like the Java pointers go from /usr/bin -> /etc/alternatives -> /usr/lib/jvm/java-1.4.2-gcj/bin. I would like to change these to point to the updated 1.5 JVM, but I'm still having problems installing.
If I run "locate java", I find two *empty* directories labeled java-1.5.0. But RPM insists that Java 1.5 is installed. Ideas?
Last edited by martian; 03-09-2006 at 01:04 PM.
|
|
|
03-09-2006, 01:13 PM
|
#9
|
Member
Registered: May 2005
Posts: 101
Rep:
|
Try as root and then again
|
|
|
03-09-2006, 01:40 PM
|
#10
|
LQ Newbie
Registered: Aug 2005
Distribution: RedHat, Ubuntu
Posts: 14
Original Poster
Rep:
|
/usr/java/jdk1.5.0_06/
Java 1.5 must have gotten installed at some point, without my realizing it, while I was trying to run RPM. So thanks for the help. I'll try updating those symbolic links.
|
|
|
All times are GMT -5. The time now is 09:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|