|
|
Subscribe / Log in / New account

Debian and code names

Debian and code names

Posted Jul 10, 2019 17:16 UTC (Wed) by tao (subscriber, #17563)
In reply to: Debian and code names by zdzichu
Parent article: Debian and code names

Might I humbly suggest /usr/lib/os-release instead? While /etc/os-release exists on Debian/Ubuntu, it's merely a symlink to /usr/lib/os-release, which is the standard on most (all?) distros these days.


to post comments

Debian and code names

Posted Aug 2, 2019 11:29 UTC (Fri) by mgedmin (subscriber, #34497) [Link]

According to https://www.freedesktop.org/software/systemd/man/os-relea...

> The file /etc/os-release takes precedence over /usr/lib/os-release. Applications should check for the former, and exclusively use its data if it exists, and only fall back to /usr/lib/os-release if it is missing. Applications should not read data from both files at the same time.

so it would be wrong to use /usr/lib/os-release instead of /etc/os-release, in theory.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds