Cara Cek Versi Distribusi Linux Melalui Terminal

Kamis, 21 Maret 2019

Cara Cek Versi Distribusi Linux Melalui Terminal. Ini adalah tutorial lanjutan dari tutorial yang saya tulis sebelumnya mengenai bagaimana cara mengecek desktop environment melalui terminal. Di tutorial ini saya akan membahas bagaimana cara cek distro yang kita gunakan, serta versinya.



Berikut perintah yang bisa digunakan
lsb_release -a
perintah lsb_release akan menampilkan distribusi linux apa yang kalian gunakan, lengkap dengan versi serta codename nya. Sayangnya, perintah ini hanya tersedia di distro distro versi terbaru, jika kalian menggunakan OS versi jadul, perintah ini belum tersedia.

Selanjutnya adalah dengan melihat file rilis di direktori /etc/.
cat /etc/*-release
Contoh output:
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Atau
cat /etc/issue
Contoh output:
Debian GNU/Linux 9 \n \l

Berikut daftar beberapa file rilis dari beberapa distribusi linux

Annvix: /etc/annvix-release
Arch Linux: /etc/arch-release
Arklinux: /etc/arklinux-release
Aurox Linux: /etc/aurox-release
BlackCat: /etc/blackcat-release
Cobalt: /etc/cobalt-release
Chakra: /etc/lsb-release
Conectiva: /etc/conectiva-release
Debian: /etc/debian_version, /etc/debian_release (rare)
Fedora / Fedora Core: /etc/fedora-release
FreeEOS: /etc/eos-version
Gentoo Linux: /etc/gentoo-release
HLFS: /etc/hlfs-release, /etc/hlfs_version
Immunix: /etc/immunix-release
IYCC: /etc/lsb-release
Knoppix: knoppix_version
Linux-From-Scratch / LFS: /etc/lfs-release, /etc/lfs_version
Linux-PPC: /etc/linuxppc-release
Linux Mint: /etc/lsb-release
Mageia: /etc/mageia-release
Mandrake: /etc/mandrake-release
Mandriva/Mandrake Linux: /etc/mandriva-release, /etc/mandrake-release, /etc/mandakelinux-release
MkLinux: /etc/mklinux-release
Novell Linux Desktop: /etc/nld-release
PLD Linux: /etc/pld-release
RHEL / RHAS / Red Hat Linux: /etc/redhat-release, /etc/redhat_version (rare)
Rubix: /etc/rubix-version
Scientific Linux / ScientificSL / ScientificCERNSLC / ScientificFermiLTS / ScientificSLF: /etc/redhat-release, /etc/redhat_version
Slackware: /etc/slackware-version, /etc/slackware-release (rare)
SME Server (Formerly E-Smith): /etc/e-smith-release
Solaris SPARC: /etc/release
Sun JDS: /etc/sun-release
SUSE Linux: /etc/SuSE-release, /etc/novell-release
SUSE Linux ES9: /etc/sles-release
Synology: /etc/synoinfo.conf
Tiny Sofa: /etc/tinysofa-release
Trustix: /etc/trustix-release, /etc/trustix-version
TurboLinux: /etc/turbolinux-release
Ubuntu Linux: /etc/lsb-release
UltraPenguin: /etc/ultrapenguin-release
UnitedLinux: /etc/UnitedLinux-release (covers SUSE SLES8)
VA-Linux/RH-VALE: /etc/va-release
Yellow Dog: /etc/yellowdog-release
Perintah lain yang bisa digunakan
cat /etc/*_ver* /etc/*-rel*

Baiklah sekian tutorial singkat kali ini, semoga bermanfaat. Jika ada yang kurang jelas silahkan tinggalkan komentar.

Artikel Terkait GNU/Linux ,Terminal