Sys::Info::Driver::Linux::OS::Distribution - Linux distribution probe


Sys-Info-Driver-Linux documentation  | view source Contained in the Sys-Info-Driver-Linux distribution.

Index


NAME

Top

Sys::Info::Driver::Linux::OS::Distribution - Linux distribution probe

SYNOPSIS

Top

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

DESCRIPTION

Top

This document describes version 0.78 of Sys::Info::Driver::Linux::OS::Distribution released on 17 April 2011.

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

Top

build

build_date

edition

kernel

manufacturer

name

new

raw_name

version

TODO

Top

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

Linux::Distribution AUTHORS

Top

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

    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

Top

Burak Gursoy <burak@cpan.org>.

COPYRIGHT

Top

LICENSE

Top

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.


Sys-Info-Driver-Linux documentation  | view source Contained in the Sys-Info-Driver-Linux distribution.