-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Depexts os distribution os family values
os-distribution
value is usually the value of ID
in /etc/os-release
os-family
value is usually the first value of ID_LIKE
in /etc/os-release
e.g.
Distribution | os-distribution | os-family |
---|---|---|
Archlinux | arch | arch |
Alpine | alpine | alpine |
Ubuntu | ubuntu | debian |
Debian | debian | debian |
Fedora | fedora | fedora |
CentOS | centos | rhel |
Oraclelinux | ol | fedora |
OpenSUSE | opensuse-leap | suse |
Gentoo | gentoo | gentoo |
Homebrew | homebrew | homebrew |
Macports | macports | macports |
FreeBSD | freebsd | bsd |
OpenBSD | openbsd | bsd |
NetBSD | netbsd | bsd |
For linux distributions it is generally better to use the os-family
value whenever possible to make distributions derived of those ones work out of the box (e.g. PopOS for Ubuntu and Manjaro for Archlinux).
In the case of CentOS/Fedora/Oraclelinux, using os-family
can get really painful with the addition of the EPEL repository so just using os-distribution
in this case is usually easier.
For macOS it is better to use both os = "macos" & os-distribution = "<distro>"
to avoid the very unlikely case where a linux distribution starts calling itself homebrew
in the future.
For BSDs it is better to just use os-distribution
as the os-family
value is not very helpful for depexts purpose.