Querying Version Information
Solaris, based on BSD Unix, was initially called SunOS.
SUN Microsystems started to develop System V Release 4 (SVR4) from SunOS 5.0 and gave it a new name Solaris 2.0. After Solaris 2.6 was released, SUN Microsystems renamed SunOS 2.10 to Solaris 10. Later, the earlier versions of Solaris were renamed to Solaris 1.x.
Therefore, the word "SunOS" is used to exclusively indicate the Solaris operating system kernel. Based on this, it is deemed that Solaris consists of SunOS, GUI, and other network enhancements.
Querying the Current Solaris Version
To query the current Solaris version, run the following command:
bash-3.2# cat /etc/release
Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 23 August 2011
bash-3.2# root@S113:~# cat /etc/release Oracle Solaris 11.3 SPARC Copyright (c) 1983, 2015, Oracle and/or its affiliates. All rights reserved. Assembled 06 October 2015 root@S113:~#
In the command output, Solaris 10 8/11 s10s_u10 indicates that the OS is Solaris 10 U10 released in August, 2011; Solaris 11.3 SPARC indicates that the OS is Solaris 11.3 released in October, 2015.
Querying a Software Version
To query software version information, run the pkginfo -l command. The following is an example of querying the version information about VRTSvxvm:
bash-3.2# pkginfo -l VRTSvxvm
PKGINST: VRTSvxvm
NAME: Binaries for VERITAS Volume Manager by Symantec
CATEGORY: system
ARCH: sparc
VERSION: 6.0.000.000,REV=11.07.2011.15.29
BASEDIR: /
VENDOR: Symantec Corporation
DESC: Virtual Disk Subsystem
PSTAMP: 6.0.000.000-GA-2011-11-07
INSTDATE: Jun 13 2012 18:06
HOTLINE: http://www.symantec.com/business/support/assistance_care.jsp
STATUS: completely installed
FILES: 842 installed pathnames
41 shared pathnames
119 directories
346 executables
393226 blocks used (approx)
bash-3.2#
In the preceding example, VRTSvxvm 6.0 is used.