Sunday, February 2, 2014

Install JDK in Solaris 11 using PKG command

root@solaris:/opt/jdk7# pkg search -p jdk
PACKAGE                                                          PUBLISHER
pkg:/developer/java/jdk-6@1.6.0.35-0.175.1.0.0.24.1              solaris
pkg:/developer/java/jdk-7@1.7.0.7-0.175.1.0.0.24.0               solaris
pkg:/developer/java/jdk64@0.5.11-0.151.0.1                       solaris
pkg:/developer/java/jdk@0.5.11-0.151.0.1                         solaris
pkg:/developer/java/jdk@0.5.11-0.173                             solaris
pkg:/developer/java/jdk@1.6.0.35-0.175.1.0.0.24.1                solaris
pkg:/developer/java/jdk@1.7.0.21-0.175.1.7.0.4.0                 solaris
pkg:/developer/java/jdk@1.7.0.25-0.175.1.9.0.3.0                 solaris
pkg:/developer/java/jdk@1.7.0.45-0.175.1.12.0.5.0                solaris
pkg:/developer/java/jdk@1.7.0.5-0.175.0.10.1.0.0                 solaris
pkg:/developer/java/jdk@1.7.0.51.13                              solaris
pkg:/developer/java/jdk@1.7.0.7-0.175.1.0.0.24.0                 solaris
pkg:/gnome/accessibility/gnome-a11y-libs@2.30.0-0.175.1.0.0.21.0 solaris
pkg:/library/java/commons-collections@3.2.1-0.175.0.0.0.0.0      solaris
pkg:/library/java/demo64@0.5.11-0.151.0.1                        solaris
pkg:/library/java/demo@0.5.11-0.151.0.1                          solaris
pkg:/library/java/host-config@0.5.11-0.151.0.1                   solaris
pkg:/library/java/java-demo-6@1.6.0.35-0.175.1.0.0.24.1          solaris
pkg:/library/java/java-demo-7@1.7.0.7-0.175.1.0.0.24.0           solaris
pkg:/library/java/java-demo@1.6.0.35-0.175.1.0.0.24.1            solaris
pkg:/library/java/java-demo@1.7.0.21-0.175.1.7.0.4.0             solaris
pkg:/library/java/java-demo@1.7.0.25-0.175.1.9.0.3.0             solaris
pkg:/library/java/java-demo@1.7.0.45-0.175.1.12.0.5.0            solaris
pkg:/library/java/java-demo@1.7.0.5-0.175.0.10.1.0.0             solaris
pkg:/library/java/java-demo@1.7.0.51.13                          solaris
pkg:/library/java/java-demo@1.7.0.7-0.175.1.0.0.24.0             solaris
pkg:/library/java/javahelp@0.5.11-0.151.0.1                      solaris
pkg:/library/java/javahelp@0.5.11-0.175.0.0.0.2.0                solaris
pkg:/library/java/javahelp@0.5.11-0.175.1.0.0.11.0               solaris
pkg:/library/java/manual/locale/ja@0.5.11-0.151.0.1              solaris
pkg:/library/java/manual@0.5.11-0.151.0.1                        solaris
pkg:/runtime/java/jre-6@1.6.0.35-0.175.1.0.0.24.1                solaris
pkg:/runtime/java/jre-7@1.7.0.7-0.175.1.0.0.24.0                 solaris
pkg:/runtime/java/runtime64@0.5.11-0.151.0.1                     solaris

root@solaris:/opt/jdk7# pkg install  --accept pkg:/developer/java/jdk-7
           Packages to install:  3
       Create boot environment: No
Create backup boot environment: No

Planning linked: 0/1 done; 1 working: zone:testzone
Planning linked: 1/1 done
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                                3/3       699/699    42.8/42.8  172k/s

Downloading linked: 0/1 done; 1 working: zone:testzone
Downloading linked: 1/1 done
PHASE                                          ITEMS
Installing new actions                       856/856
Updating package state database                 Done
Updating image state                            Done
Creating fast lookup database                   Done
Executing linked: 0/1 done; 1 working: zone:testzone
Executing linked: 1/1 done

No comments:

Post a Comment