Tranzystor.pl – Vortal Elektroniczny

Jak sprawdzić wersję systemu Debian / Raspbian

Jak sprawdzić wersję Debiana, to pytanie dość często pojawia się na forach czy do mnie na PW ;).

debian raspbian wersja

Można to sprawdzić na kilka sposobów, wszystko odbywa się w konsoli lub po ssh.

1. debian_version

Pierwszym ze sposobów jest sprawdzenie jaki numer wersji mamy

~# cat /etc/debian_version
9.11

2. issue

Drugi sposób poda nam konkretną wersję dystrybucji.

Dla Debiana

~# cat /etc/issue
Debian GNU/Linux 9 \n \l

Dla Raspbian

cat /etc/issue
Raspbian GNU/Linux 10 \n \l

3. lsb_release

Trzecią z opcji jest polecenie, które wyświetli nam specyficzne informacje o danej dystrybucji.

Dla Debiana
lsb_release -a


No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.11 (stretch)
Release: 9.11
Codename: stretch

Dla Raspbian

lsb_release -a


No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster

5/5 - (2 ocena/y)
Exit mobile version