Closed lucaswerkmeister closed 6 years ago
Hi thank you for your input!
Wow, that was fast, thanks! :D But this doesn’t account for distributions where the VERSION_ID
field is missing, like Arch.
Thanks for that example, after I looked at debian, ubuntu, centos, fedora I assumed it is always present. So if it is not present we can simply omit it.
Great, thanks!
I think the
os
field is currently underspecified:For Linux distributions, is the OS “Linux” or the distribution name? And is the version the Linux kernel version or the distribution version? (In the latter case: what about rolling-release distributions like Arch?)
On Linux systems, I would suggest using the
ID
andVERSION_ID
fields from/etc/os-release
. (Note that theVERSION_ID
field is optional.)I’m less familiar with *BSD, but I take it the version number is unambiguous there?