インストール

# wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "https://edelivery.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.rpm"
--2014-08-28 00:46:23--  https://edelivery.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.rpm
Resolving edelivery.oracle.com... 23.44.166.140
Connecting to edelivery.oracle.com|23.44.166.140|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.rpm?AuthParam=1409154521_46d5f387562d4b49802e0c60dc79bf80 [following]
--2014-08-28 00:46:29--  http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.rpm?AuthParam=1409154521_46d5f387562d4b49802e0c60dc79bf80
Resolving download.oracle.com... 110.232.152.34, 110.232.152.35
Connecting to download.oracle.com|110.232.152.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 121271382 (116M) [application/x-redhat-package-manager]
Saving to: “jdk-7u51-linux-i586.rpm”

100%[===================================================================================================================================================================================================>] 121,271,382 4.39M/s   in 37s

2014-08-28 00:47:12 (3.09 MB/s) - “jdk-7u51-linux-i586.rpm” saved [121271382/121271382]

# rpm -ivh jdk-7u51-linux-i586.rpm
Preparing...                ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
        rt.jar...
        jsse.jar...
        charsets.jar...
        tools.jar...
        localedata.jar...
        jfxrt.jar...
        plugin.jar...
        javaws.jar...
        deploy.jar...

# java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)

# whereis java
java: /usr/bin/java

アップグレード

# wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.rpm"
--2014-08-28 01:02:51--  http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.rpm
Resolving download.oracle.com... 110.232.152.34, 110.232.152.35
Connecting to download.oracle.com|110.232.152.34|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.rpm [following]
--2014-08-28 01:02:56--  https://edelivery.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.rpm
Resolving edelivery.oracle.com... 23.44.166.140
Connecting to edelivery.oracle.com|23.44.166.140|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.rpm?AuthParam=1409155514_9f0059c99963a2aba06bfcc0fac8f1af [following]
--2014-08-28 01:03:02--  http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.rpm?AuthParam=1409155514_9f0059c99963a2aba06bfcc0fac8f1af
Reusing existing connection to download.oracle.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 125480893 (120M) [application/x-redhat-package-manager]
Saving to: “jdk-7u67-linux-i586.rpm”

100%[===================================================================================================================================================================================================>] 125,480,893 3.69M/s   in 25s

2014-08-28 01:03:27 (4.84 MB/s) - “jdk-7u67-linux-i586.rpm” saved [125480893/125480893]

# rpm -Uvh jdk-7u67-linux-i586.rpm
Preparing...                ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
        rt.jar...
        jsse.jar...
        charsets.jar...
        tools.jar...
        localedata.jar...
        jfxrt.jar...
        plugin.jar...
        javaws.jar...
        deploy.jar...

# java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)

# whereis java
java: /usr/bin/java