0

I am trying to reinstall java on a CentOS box with the following command (Is this the best command?):

rpm -i --force /root/jdk-6u11-linux-i586.rpm

But I get errors when doing this:

Error: Could not open input file: /usr/java/jdk1.6.0_11/jre/lib/rt.pack
        jsse.jar...
Error: Could not open input file: /usr/java/jdk1.6.0_11/jre/lib/jsse.pack
        charsets.jar...
etc.....

Anyone know why this is?

Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
  • Removed all rpm -qa java packages and then reinstalled using the .bin file, seems okay now – Kyle Brandt Oct 22 '09 at 15:52
  • I remember that installing an RPM that was already installed threw an error if you used -i, yet you could happily upgrade a package that wasn't already installed with -U. Go figure. – David Pashley Oct 22 '09 at 18:38

3 Answers3

1

It's nice that RPM gives you a reason for the problem.

Run

# strace -e file -f rpm -i --force /root/jdk-6u11-linux-i586.rpm

and see what the error is.

(Isn't the recommended flags -Uvh for installing packages with RPM?)

David Pashley
  • 23,497
  • 2
  • 46
  • 73
0

afaik u means upgrade.

-hiv was my favorite, scnr :)

evildead
  • 892
  • 5
  • 11
0

Removed all rpm -qa java packages and then reinstalled using the .bin file, seems okay now.

Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448