![]() |
![]()
| ![]() |
![]()
NAMEDevel::CheckOS::Families - what OS "families" are supported "out of the box" by Devel::CheckOS and Devel::AssertOS? WHAT IS AN OS FAMILYComputing platforms fall into several categories. For example, there is the category of Unix-a-likes. Each of these categories is a "family". A platform can fall into several families. THE Unix FAMILYBroadly speaking, these are platforms where:
THE Linux FAMILYThis includes both ordinary Linux and Android. Plain old Linux will match 'Linux'. Android will match both that and 'Android'. A word of warning - there are a vast number of Linux derivatives, and I will never detect every single one of them. Most Linux derivatives will only match 'Linux'. THE Linux::Debian FAMILY"Linux::Debian" is the family of all the Debian-based Linuxes. If you want to test which particular family member you're on then look at list_family_members("Linux::Debian") to see what's available. Note the difference between "Linux::RealDebian" (which uses "/etc/os-release" for identification) and "Linux::UnknownDebianLike" (which uses the existence of "/etc/debian_version" for identification). In particular beware that some *very* old Debians don't have "/etc/os-release" available and so will be detected as "Linux::UnknownDebianLike". It is likely that "Linux::Ubuntu" will in the future turn into a family. THE Linux::Redhat and Linux::SUSE FAMILIESBoth Redhat and SUSE come in multiple flavours, some commercial and some open-source. In particular note that Oracle Linux is a Redhat derivative. THE MicrosoftWindows FAMILYThis includes any version of Windows and also includes things like Cygwin which run on top of it. THE DEC, Sun, and Apple FAMILIESThese include any OS written by, respectively, DEC, Sun, and Apple. They exist because, while, eg, Mac OS Classic and Mac OS X are very different platforms, they do support some unique features - such as AppleScript. THE Realtime FAMILYThis is for all real-time OSes. So far, it only includes QNX. THE EBCDIC FAMILYOSes which use EBCDIC instead of ASCII. AUTHOR, COPYRIGHT and LICENCECopyright 2024 David Cantrell <david@cantrell.org.uk> This documentation is free-as-in-speech. It may be used, distributed and modified under the terms of the Creative Commons Attribution-Share Alike 2.0 UK: England & Wales License, whose text you may read at <http://creativecommons.org/licenses/by-sa/2.0/uk/>. CONSPIRACYThis documentation is also free-as-in-mason.
|