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/04 06:37] – 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. | ||
| ===== 32 or 64 Architecture ===== | ===== 32 or 64 Architecture ===== | ||
| To check if system is running a 32 (Raspberry) or 64 (X86) architecture, | To check if system is running a 32 (Raspberry) or 64 (X86) architecture, | ||
| + | < | ||
| + | # dpkg --print-architecture | ||
| + | ------------------------- | ||
| + | armhf | ||
| + | </ | ||
| < | < | ||
| # getconf LONG_BIT | # getconf LONG_BIT | ||
| ------------------ | ------------------ | ||
| 32 | 32 | ||
| - | + | </ | |
| - | file / | + | < |
| + | # file / | ||
| ------------------------- | ------------------------- | ||
| / | / | ||
| </ | </ | ||
| + | |||
| ===== Distribution & Version ===== | ===== Distribution & Version ===== | ||
| Use one of the following commands to verify the distribution and version: | Use one of the following commands to verify the distribution and version: | ||
| Line 21: | 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^ | ^X86^Raspberry^ | ||
| Line 41: | Line 48: | ||
| Codename: | Codename: | ||
| </ | </ | ||
| - | ===== / | + | ==== / |
| The / | The / | ||
| ^X86^Raspberry^ | ^X86^Raspberry^ | ||
| Line 53: | Line 60: | ||
| 12.8</ | 12.8</ | ||
| - | ===== / | + | ==== / |
| The / | The / | ||
| ^X86^Raspberry^ | ^X86^Raspberry^ | ||
| Line 82: | Line 89: | ||
| BUG_REPORT_URL=" | BUG_REPORT_URL=" | ||
| </ | </ | ||
| - | ===== hostnamectl | + | ==== hostnamectl ==== |
| The hostnamectl command displays the hostname and other system information, | The hostnamectl command displays the hostname and other system information, | ||
| ^X86^Raspberry^ | ^X86^Raspberry^ | ||
| Line 110: | Line 117: | ||
| Architecture: | Architecture: | ||
| </ | </ | ||
| - | ===== uname ===== | + | ==== 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. | ||
| |< | |< | ||
linux/debian/check-debian-version.1788503824.txt.gz · Last modified: by oscar
