Versi OS di Ubuntu/Debian, Solaris 10, & OSX

Untuk melihat versi sistem operasi Ubuntu saya biasa gunakan perintah lsb_release -a seperti berikut ini :

ttirtawi@gbt733:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 12.10
Release:	12.10
Codename:	quantal
ttirtawi@gbt733:~$

Atau bisa tinggal lihat berkas /etc/lsb-release :

ttirtawi@gbt733:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10
DISTRIB_CODENAME=quantal
DISTRIB_DESCRIPTION="Ubuntu 12.10"
ttirtawi@gbt733:~$

Perintah yang sama bisa dipakai di distribusi Debian :

pasific:~# lsb_release -a
LSB Version:	core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-3.1-ia32:cxx-3.1-noarch:cxx-3.2-ia32:cxx-3.2-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:graphics-3.1-ia32:graphics-3.1-noarch:graphics-3.2-ia32:graphics-3.2-noarch:qt4-3.1-ia32:qt4-3.1-noarch
Distributor ID:	Debian
Description:	Debian GNU/Linux 5.0 (lenny)
Release:	5.0
Codename:	lenny
pasific:~#

Di Debian 7 informasi yang sama bisa diliat di berkas /etc/os-release seperti berikut ini :

ttirtawi@debian7:~$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"
ttirtawi@debian7:~$

Sementara di Solaris 10, versi OSnya bisa dilihat di berkas /etc/release seperti berikut ini :

$ cat /etc/release
                   Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
     Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
                            Assembled 11 August 2010
$ 

Agak sedikit berbeda di Mac OSX Mountain Lion, saya baru tahu 2 perintah berikut ini untuk melihat versi OS dari command line. Yang pertama adalah sw_vers :

ttirtawi@macmini:~$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.8.4
BuildVersion:	12E55
ttirtawi@macmini:~$

Sementara yang kedua adalah system_profiler :

ttirtawi@macmini:~$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: OS X 10.8.4 (12E55)
      Kernel Version: Darwin 12.4.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: macmini
      User Name: Tedy Tirtawidjaja (ttirtawi)
      Secure Virtual Memory: Enabled
      Time since boot: 2 days 4:36

ttirtawi@macmini:~$

Leave a Reply