linux:debian:check-debian-version
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:debian:check-debian-version [2026/09/02 16:53] – oscar | linux:debian:check-debian-version [2026/09/04 07:58] (current) – oscar | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Check Debian Version | + | ====== Check Architecture & Distribution |
| ---- | ---- | ||
| This guide explains several ways to check your Debian version from the command line. | This guide explains several ways to check your Debian version from the command line. | ||
| - | ===== Quick Reference | + | ===== 32 or 64 Architecture |
| + | To check if system is running a 32 (Raspberry) or 64 (X86) architecture, | ||
| + | < | ||
| + | # dpkg --print-architecture | ||
| + | ------------------------- | ||
| + | armhf | ||
| + | </ | ||
| + | < | ||
| + | # getconf LONG_BIT | ||
| + | ------------------ | ||
| + | 32 | ||
| + | </ | ||
| + | < | ||
| + | # file / | ||
| + | ------------------------- | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | ===== Distribution & Version ===== | ||
| + | Use one of the following commands to verify the distribution and version: | ||
| ^Method^Command^ | ^Method^Command^ | ||
| |Recommended|cat / | |Recommended|cat / | ||
| Line 9: | Line 28: | ||
| |Hostname and OS info|hostnamectl| | |Hostname and OS info|hostnamectl| | ||
| |Kernel version|uname -r| | |Kernel version|uname -r| | ||
| - | ===== lsb_release | + | ==== lsb_release ==== |
| The lsb_release command displays Linux Standard Base (LSB) information about the distribution. It is a clean way to print release details when the package is installed. To display full release information: | The lsb_release command displays Linux Standard Base (LSB) information about the distribution. It is a clean way to print release details when the package is installed. To display full release information: | ||
| - | < | + | ^X86^Raspberry^ |
| + | |< | ||
| # lsb_release -a | # lsb_release -a | ||
| ---------------- | ---------------- | ||
| Line 19: | Line 39: | ||
| Release: 12 | Release: 12 | ||
| Codename: | Codename: | ||
| - | </ | + | </code> |
| - | ===== / | + | # lsb_release -a |
| + | ---------------- | ||
| + | No LSB modules are available. | ||
| + | Distributor ID: | ||
| + | Description: | ||
| + | Release: | ||
| + | Codename: | ||
| + | </ | ||
| + | ==== / | ||
| The / | The / | ||
| - | < | + | ^X86^Raspberry^ |
| + | |< | ||
| # cat / | # cat / | ||
| ------------------------- | ------------------------- | ||
| 12.15 | 12.15 | ||
| - | </ | + | </code> |
| - | ===== / | + | # cat / |
| + | ------------------------- | ||
| + | 12.8</ | ||
| + | |||
| + | ==== / | ||
| The / | The / | ||
| - | < | + | ^X86^Raspberry^ |
| + | |< | ||
| # cat / | # cat / | ||
| --------------------- | --------------------- | ||
| Line 41: | Line 75: | ||
| SUPPORT_URL=" | SUPPORT_URL=" | ||
| BUG_REPORT_URL=" | BUG_REPORT_URL=" | ||
| - | </ | + | </code> |
| - | ===== hostnamectl | + | # cat / |
| + | --------------------- | ||
| + | PRETTY_NAME=" | ||
| + | NAME=" | ||
| + | VERSION_ID=" | ||
| + | VERSION="12 (bookworm)" | ||
| + | VERSION_CODENAME=bookworm | ||
| + | ID=raspbian | ||
| + | ID_LIKE=debian | ||
| + | HOME_URL=" | ||
| + | SUPPORT_URL=" | ||
| + | BUG_REPORT_URL=" | ||
| + | </ | ||
| + | ==== hostnamectl | ||
| The hostnamectl command displays the hostname and other system information, | The hostnamectl command displays the hostname and other system information, | ||
| - | < | + | ^X86^Raspberry^ |
| + | |< | ||
| # hostnamectl | # hostnamectl | ||
| ------------- | ------------- | ||
| Line 58: | Line 106: | ||
| Hardware Model: Z77MX-D3H | Hardware Model: Z77MX-D3H | ||
| Firmware Version: F17b | Firmware Version: F17b | ||
| - | </ | + | </code> |
| - | ===== uname ===== | + | # hostnamectl |
| + | ------------- | ||
| + | Static hostname: domoticz | ||
| + | Icon name: computer | ||
| + | Machine ID: 12b558257a8f41a78fd44d8660ea1048 | ||
| + | Boot ID: 12b91d670c26459b930cdcd197ddc3c4 | ||
| + | Operating System: Raspbian GNU/Linux 12 (bookworm) | ||
| + | Kernel: Linux 6.6.20+rpt-rpi-v7 | ||
| + | Architecture: | ||
| + | </ | ||
| + | ==== uname ==== | ||
| The uname command does not show the Debian version directly, but it displays the kernel version, which can help identify the release. | The uname command does not show the Debian version directly, but it displays the kernel version, which can help identify the release. | ||
| - | < | + | |< |
| # uname -r | # uname -r | ||
| ---------- | ---------- | ||
| Line 69: | Line 127: | ||
| ---------- | ---------- | ||
| Linux pcwerkkamer 6.1.0-52-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.180-1 (2026-08-03) x86_64 GNU/Linux | Linux pcwerkkamer 6.1.0-52-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.180-1 (2026-08-03) x86_64 GNU/Linux | ||
| - | </ | + | </ |
| + | # uname -r | ||
| + | ---------- | ||
| + | 6.6.20+rpt-rpi-v7 | ||
| + | |||
| + | # uname -a | ||
| + | ---------- | ||
| + | Linux domoticz 6.6.20+rpt-rpi-v7 #1 SMP Raspbian 1: | ||
| + | </ | ||
| ===== Debian Releases and Codenames ===== | ===== Debian Releases and Codenames ===== | ||
| Debian codenames come from characters in the Toy Story movies, and each release keeps its codename for life. The table below lists recent releases and how long each one receives security support: | Debian codenames come from characters in the Toy Story movies, and each release keeps its codename for life. The table below lists recent releases and how long each one receives security support: | ||
linux/debian/check-debian-version.1788368014.txt.gz · Last modified: by oscar
