네, yum 으로 쉽게 설치하는 방법이 있지요.
[root@localhost usr]# yum list java*jdk-devel
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.tt.co.kr
* extras: centos.tt.co.kr
* updates: centos.tt.co.kr
Available Packages
java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-5.1.13.3.el6_5 updates
java-1.7.0-openjdk-devel.x86_64 1:1.7.0.65-2.5.1.2.el6_5 @updates
위에 처럼 java, jdk 검색해보면 java 1.6, java 1.7 이 검색되죠?
그럼 아래 처럼 설치하시면 됩니다.(1.7.0 설치)
[root@localhost usr]# yum install java-1.7.0-openjdk-devel.x86_64
Installed:
java-1.7.0-openjdk.x86_64 1:1.7.0.65-2.5.1.2.el6_5
java-1.7.0-openjdk-demo.x86_64 1:1.7.0.65-2.5.1.2.el6_5
java-1.7.0-openjdk-devel.x86_64 1:1.7.0.65-2.5.1.2.el6_5
java-1.7.0-openjdk-javadoc.noarch 1:1.7.0.65-2.5.1.2.el6_5
java-1.7.0-openjdk-src.x86_64 1:1.7.0.65-2.5.1.2.el6_5
Dependency Installed:
flac.x86_64 0:1.2.1-6.1.el6 giflib.x86_64 0:4.1.6-3.1.el6
jpackage-utils.noarch 0:1.7.5-3.12.el6 libXfont.x86_64 0:1.4.5-3.el6_5
libasyncns.x86_64 0:0.8-1.1.el6 libfontenc.x86_64 0:1.0.5-2.el6
libsndfile.x86_64 0:1.0.20-5.el6 pulseaudio-libs.x86_64 0:0.9.21-14.el6_3
ttmkfdir.x86_64 0:3.0.9-32.1.el6 tzdata-java.noarch 0:2014e-1.el6
xorg-x11-font-utils.x86_64 1:7.2-11.el6 xorg-x11-fonts-Type1.noarch 0:7.2-9.1.el6
Complete!
설치되었습니다. ㅋ