LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   RPM upgrade options? (https://www.linuxquestions.org/questions/linux-general-1/rpm-upgrade-options-307993/)

brundles 03-30-2005 07:11 PM

RPM upgrade options?
 
Just a quick question about RPM packages...

I'm trying to upgrade JRE 1.4.2 to JRE 1.5.0. As several people on here have seen the RPM packages have very different names (java-1_4_2-sun-1.4.2.06-1.1 vs jre-1.5.0_02-fcs). Is there a way to get the RPM software to treat the jre1.5.0 package as an upgrade for java-1.4.2 instead of the messier option of installing both and then forcing a remove on the original?

Just wondered if this was possible and whether it would leave dependencies in a cleaner state afterwards,

Thanks in advance,
Keith

{BBI}Nexus{BBI} 03-30-2005 09:14 PM

To upgrade a package you type rpm -Uvh <package name>.rpm

quatsch 03-30-2005 11:11 PM

I think what brundles is saying is that the jre1.5 package might not be recognized as an upgrade to the installed jre1.4 package.

What you could do is install the jre1.5 package and then manually remove the jre1.4 components (it's usually in a single directory - on my system it was something like /usr/java/jre1.4.2). This way, rpm will think that jre1.4 is still there so won't complain about dependencies when something requires it. you might still have to fix some application configurations so they find the new java installation. It's not the cleanest way but it should work.

reddazz 03-31-2005 01:58 AM

I don't think there is a way to treat the 1.5 version as an upgrade to your 1.4 version because your 1.4 version seems to be a full SDK whereas the 1.5 version is a jre. If both were jre's or sdk's, installing a newer package would theoretically delete the old one.


All times are GMT -5. The time now is 08:24 PM.