Closed staralt closed 1 month ago
Checking the /etc/*-release file can determinate the linux distribution of the running system.
/etc/*-release
However, to check the system distribution, it need to check not only ID_LIKE but also ID, NAME or various parameters.
ID_LIKE
ID
NAME
(Issue #2) /etc/os-release:
root@truenas[/mnt/data]# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Checking the
/etc/*-release
file can determinate the linux distribution of the running system.However, to check the system distribution, it need to check not only
ID_LIKE
but alsoID
,NAME
or various parameters.(Issue #2) /etc/os-release: