Sys::Info::Driver::Linux::OS::Distribution(3pm)

Sys::Info::Driver::Linux::OS::Distribution3pm

Linux distribution probe

Usage

    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";
    }

Version

version 0.7905

Overview

This is a simple module that tries to guess on what linux distribution we are running by looking for release's files in /etc. It now looks for 'lsb-release' first as that should be the most correct and adds ubuntu support. Secondly, it will look for the distro specific files.

It currently recognizes slackware, debian, suse, fedora, redhat, turbolinux, yellowdog, knoppix, mandrake, conectiva, immunix, tinysofa, va-linux, trustix, adamantix, yoper, arch-linux, libranet, gentoo, ubuntu and redflag.

It has function to get the version for debian, suse, redhat, gentoo, slackware, redflag and ubuntu(lsb). People running unsupported distro's are greatly encouraged to submit patches.

Methods

build

build_date

edition

kernel

manufacturer

name

new

raw_name

version

Todo

Add the capability of recognize the version of the distribution for all recognized distributions.

Linux::Distribution AUTHORS

Some parts of this module were originally taken from "Linux::Distribution" and it's authors are:

    Alberto Re       E<lt>[email protected]<gt>
    Judith Lebzelter E<lt>[email protected]<gt>
    Alexandr Ciornii E<lt>[email protected]<gt>

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

Burak Gursoy <[email protected]>

From libsys-info-driver-linux-perl 0.7905-6 in Debian 13 (Trixie). Parsed by carta from the page's man source.