Hi everyone,
I'm a newbie to centos and having trouble upgrading java's jdk1.4 to jdk1.5. I assume I have to get the jdk from jpackage, but I'm having trouble locating it, let alone finding any instructions on how to upgrade. Much appreciated if anyone can help. Thanks!
Hello Lee,
Why not just download the rpm directly from Sun (java.sun.com). Not quite as easy as yum install blah, but almost :)
jer
Friday, July 15, 2005, 1:00:00 AM, you wrote:
Hi everyone,
I'm a newbie to centos and having trouble upgrading java's jdk1.4 to jdk1.5. I assume I have to get the jdk from jpackage, but I'm having trouble locating it, let alone finding any instructions on how to upgrade. Much appreciated if anyone can help. Thanks!
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 7/15/05, Lee w buckywombat@hotmail.com wrote:
Hi everyone,
I'm a newbie to centos and having trouble upgrading java's jdk1.4 to jdk1.5. I assume I have to get the jdk from jpackage, but I'm having trouble locating it, let alone finding any instructions on how to upgrade. Much appreciated if anyone can help. Thanks!
To my knowledge they do not supply the sun java jdk, but supply a nosrc.rpm for it. You have to download the jdk from java.sun.com and build the rpm using the specfile included in the nosrc.rpm. See the http://jpackage.org/rpm.php?id=2663 page for more info.
-- Jim Perrin System Administrator - UIT Ft. Gordon & US Army Signal Center
On Fri, 2005-07-15 at 17:00 +0900, Lee w wrote:
Hi everyone,
I'm a newbie to centos and having trouble upgrading java's jdk1.4 to jdk1.5. I assume I have to get the jdk from jpackage, but I'm having trouble locating it, let alone finding any instructions on how to upgrade. Much appreciated if anyone can help. Thanks!
Can find them in Dag Wieers' repo...
j2re-1.4.2-11.2.el4.rf.i586.rpm mozilla-j2re-1.4.2-11.2.el4.rf.i586.rpm
Here are the config files:
[prs@wx1 ~]$ cat /etc/yum.repos.d/dag.repo [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag/ enabled=0 gpgcheck=1 [dag_i386] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/i386/dag/ enabled=0 gpgcheck=1
Change "enabled=0" to "enabled=1" if you don't want to have to use "--enablerepo=dag" on yum commands, and be sure to import the GPG key:
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
Or for smart... [prs@wx1 ~]$ cat /etc/smart/channels/dag.channel ### URL: http://dag.wieers.com/apt/ [dag] name = RPMforge.net: Dag RPM Repository for (x86_64) baseurl = http://apt.sw.be/redhat/el4/en/x86_64/dag type = rpm-md priority = 10 [prs@wx1 ~]$ cat /etc/smart/channels/dag_i386.channel ### URL: http://dag.wieers.com/apt/ [dag_i386] name = RPMforge.net: Dag RPM Repository for (i386) baseurl = http://apt.sw.be/redhat/el4/en/i386/dag type = rpm-md priority = 10
The weirdness with the [dag_i386] stuff is to be able to find i386 packages on my x86_64 arch. On a 32-bit machine the 1st entries are sufficient.
Phil
On Fri, 2005-07-15 at 09:31 -0400, Phil Schaffner wrote:
On Fri, 2005-07-15 at 17:00 +0900, Lee w wrote:
Hi everyone,
I'm a newbie to centos and having trouble upgrading java's jdk1.4 to jdk1.5. I assume I have to get the jdk from jpackage, but I'm having trouble locating it, let alone finding any instructions on how to upgrade. Much appreciated if anyone can help. Thanks!
Can find them in Dag Wieers' repo...
j2re-1.4.2-11.2.el4.rf.i586.rpm mozilla-j2re-1.4.2-11.2.el4.rf.i586.rpm
OOPS - haven't had my coffee yet. You wanted the 1.5 stuff. Sorry, Dag doesn't seem to have that yet.
Phil
On Fri, 15 Jul 2005, Phil Schaffner wrote:
On Fri, 2005-07-15 at 17:00 +0900, Lee w wrote:
Hi everyone,
I'm a newbie to centos and having trouble upgrading java's jdk1.4 to jdk1.5. I assume I have to get the jdk from jpackage, but I'm having trouble locating it, let alone finding any instructions on how to upgrade. Much appreciated if anyone can help. Thanks!
Can find them in Dag Wieers' repo...
j2re-1.4.2-11.2.el4.rf.i586.rpm mozilla-j2re-1.4.2-11.2.el4.rf.i586.rpm
Here are the config files:
[prs@wx1 ~]$ cat /etc/yum.repos.d/dag.repo [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag/ enabled=0 gpgcheck=1 [dag_i386] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/i386/dag/ enabled=0 gpgcheck=1
Change "enabled=0" to "enabled=1" if you don't want to have to use "--enablerepo=dag" on yum commands, and be sure to import the GPG key:
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
Or for smart... [prs@wx1 ~]$ cat /etc/smart/channels/dag.channel ### URL: http://dag.wieers.com/apt/ [dag] name = RPMforge.net: Dag RPM Repository for (x86_64) baseurl = http://apt.sw.be/redhat/el4/en/x86_64/dag type = rpm-md priority = 10 [prs@wx1 ~]$ cat /etc/smart/channels/dag_i386.channel ### URL: http://dag.wieers.com/apt/ [dag_i386] name = RPMforge.net: Dag RPM Repository for (i386) baseurl = http://apt.sw.be/redhat/el4/en/i386/dag type = rpm-md priority = 10
The weirdness with the [dag_i386] stuff is to be able to find i386 packages on my x86_64 arch. On a 32-bit machine the 1st entries are sufficient.
My x86_64 repository used to be a merge of i386 and x86_64. Sadly Yum cannot handle this. (ie. it installs both archs) See Yum bugzilla for the report.
After a bunch of mails from confused Yum users I decided to keep them seperated.
Kind regards, -- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power]
On Fri, 2005-07-15 at 18:17 +0200, Dag Wieers wrote:
On Fri, 15 Jul 2005, Phil Schaffner wrote:
... snip ...
The weirdness with the [dag_i386] stuff is to be able to find i386 packages on my x86_64 arch. On a 32-bit machine the 1st entries are sufficient.
My x86_64 repository used to be a merge of i386 and x86_64. Sadly Yum cannot handle this. (ie. it installs both archs) See Yum bugzilla for the report.
After a bunch of mails from confused Yum users I decided to keep them seperated.
Dag,
Thanks for the enlightenment on the reasoning. Only noticed the problem when trying to install packages that are i386-only on x86_64. It would be nice if the i386-only packages showed up in the x86_64 repo; however, that sounds likely to be an extra manual load on you, unless some bright person can suggest a way to automate the process.
Regards, Phil
On Fri, 2005-07-15 at 14:22 -0400, Phil Schaffner wrote:
On Fri, 2005-07-15 at 18:17 +0200, Dag Wieers wrote:
On Fri, 15 Jul 2005, Phil Schaffner wrote:
... snip ...
The weirdness with the [dag_i386] stuff is to be able to find i386 packages on my x86_64 arch. On a 32-bit machine the 1st entries are sufficient.
My x86_64 repository used to be a merge of i386 and x86_64. Sadly Yum cannot handle this. (ie. it installs both archs) See Yum bugzilla for the report.
After a bunch of mails from confused Yum users I decided to keep them seperated.
Dag,
Thanks for the enlightenment on the reasoning. Only noticed the problem when trying to install packages that are i386-only on x86_64. It would be nice if the i386-only packages showed up in the x86_64 repo; however, that sounds likely to be an extra manual load on you, unless some bright person can suggest a way to automate the process.
Regards, Phil
To allow both the i386 and the x86_64 package to be installed on the same machine, some things need to be different. All the docs and setup files normally reside in the same shared location, so installing both can be a problem. (can't install xxx.x86_64 because file xxx is already installed and owned by package xxx.i386)
Because of the way RH supports multilib arches, they have spec files that allow certain, but not all, i386 and x86_64 to be installed simultaneously. Other times, you will have to pick either the i386 OR the x86_64 package.
On Fri, 15 Jul 2005, Phil Schaffner wrote:
On Fri, 2005-07-15 at 18:17 +0200, Dag Wieers wrote:
On Fri, 15 Jul 2005, Phil Schaffner wrote:
... snip ...
The weirdness with the [dag_i386] stuff is to be able to find i386 packages on my x86_64 arch. On a 32-bit machine the 1st entries are sufficient.
My x86_64 repository used to be a merge of i386 and x86_64. Sadly Yum cannot handle this. (ie. it installs both archs) See Yum bugzilla for the report.
After a bunch of mails from confused Yum users I decided to keep them seperated.
Thanks for the enlightenment on the reasoning. Only noticed the problem when trying to install packages that are i386-only on x86_64. It would be nice if the i386-only packages showed up in the x86_64 repo; however, that sounds likely to be an extra manual load on you, unless some bright person can suggest a way to automate the process.
Not only that, it also needs to pull in all dependencies and be smart enough to know when to upgrade to x86_64 and when to keep both.
Seems something Yum should be able to do, much like pinning and the protect-base functionality.
Kind regards, -- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power]