Devel-CheckOS

 view release on metacpan or  search on metacpan

TODO  view on Meta::CPAN

Detect different types of MS Windows;
Detect old Linux distros without using os-release
  https://github.com/cfengine/core/blob/4f5e8dd65c4eccd69bc6fe603343233fe1a1f577/libenv/sysinfo.c#L1287
Detect versions of OSes and distros;
Detect other init systems than just systemd;
Detect musl vs glibc
Detect busybox

use-devel-assertos should not add itself twice (update, if run a second time)

to detect openrc:

Gianni says: @DrHyde@fosstodon.org for openrc, you probably get /sbin/openrc-run, and a few lines mentioning /sbin/openrc in /etc/inittab, like:
    si::sysinit:/sbin/openrc sysinit
    rc::bootwait:/sbin/openrc boot
    l0u:0:wait:/sbin/telinit u
    l0:0:wait:/sbin/openrc shutdown



( run in 1.643 second using v1.01-cache-2.11-cpan-87723dcf8b7 )