Sys::I...bution(3pm)
π Sys::Info::Driver::Linux::OS::Distribution β Linux distribution probe π
okay bestie, so this is a page from the User Contributed Perl Documentation section (yes, the manual name got squished to Sys::I...bution(3pm) in the header, we don't talk about it, the terminal was being dramatic π) and it's literally the whole vibe of "which Linux am I even on rn??" β let's get into it π¦
β¨ NAME β¨
Sys::Info::Driver::Linux::OS::Distribution β it's a Linux distribution probe. that's it. that's the job. it finds out what distro you're running π
β¨ VERSION β¨
version 0.7911 β yeah she's been around a minute and she's still serving π
β¨ SYNOPSIS β¨
here's the whole thing in action, no cap:
use Sys::Info::Driver::Linux::OS::Distribution;
my $distro = Sys::Info::Driver::Linux::OS::Distribution->new;
my $name = $distro->name;
if( $name ) {
my $version = $distro->version;
print "you are running $distro, version $version\n";
}
else {
print "distribution unknown\n";
}
so like, you build the object, you ask for the name, and if it actually knows something you go ask for the version too and print the cute little message. if it's clueless you just print "distribution unknown\n" and move on with your life π
β¨ DESCRIPTION β¨
okay so the tea β β this is a simple module that tries to guess what linux distribution we're running by going snooping around in /etc looking for release's files. very detective energy, very main character π
and here's the glow-up: it now looks for lsb-release first, because that should be the most correct one, and it also adds ubuntu support because we love that for her. secondly, it'll go look for the distro specific files instead. periodt.
it currently recognizes all of these icons π:
slackwaredebiansusefedoraredhatturbolinuxyellowdogknoppixmandrakeconectivaimmunixtinysofava-linuxtrustixadamantixyoperarch-linuxlibranetgentooubunturedflag
and it has a function to get the version for debian, suse, redhat, gentoo, slackware, redflag and ubuntu(lsb). so like, if you're on one of the other onesβ¦ people running unsupported distro's are greatly encouraged to submit patches π«Ά like genuinely, the module is literally asking you, bestie, please, we need you, bring your distro to the group chat ππ
β¨ METHODS β¨
here's the whole roster, every single one, no skipping π:
buildbuild_dateeditionkernelmanufacturernamenewraw_nameversion
β¨ TODO β¨
the to-do list, and honestly relatable: add the capability of recognize the version of the distribution for all recognized distributions. so like, right now only some distros get the full version treatment, and the goal is everyone gets a version β¨ manifesting it fr fr π
β¨ Linux::Distribution AUTHORS β¨
some parts of this module were originally taken from "Linux::Distribution" (crossover episode π¬) and it's authors are, respectfully, the OGs:
Alberto Re E<lt>alberto@accidia.netE<gt>
Judith Lebzelter E<lt>judith@osdl.orgE<gt>
Alexandr Ciornii E<lt>alexchorny@gmail.com<gt>
β¨ AUTHOR β¨
Burak Gursoy π
β¨ COPYRIGHT AND LICENSE β¨
this software is copyright (c) 2006 by Burak Gursoy.
and it's free software β you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay π
okay so real talk, the header said this wasSys::I...bution(3pm)from the User Contributed Perl Documentation, and the footer is givingperl v5.40.1, dated2025-10-07π so that's the vibe check, that's the timestamp, we're done here. love u, go find out what distro you're on ππ¦β¨
π¦ where this page comes from
- ubuntu resolute: libsys-info-driver-linux-perl 0.7911-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsys-info-driver-linux-perl 0.7911-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms