NAME

Slackware::SBoKeeper::System - Slackware system information

SYNOPSIS

use Slackware::SBoKeeper::System;
...

DESCRIPTION

Slackware::SBoKeeper::System is a module that provides miscellaneous information about the Slackware system. This module is not meant to be used outside of sbokeeper. If you are looking for sbokeeper user documentation, please consult its manual.

Slackware::SBoKeeper::System works similarly to File::Spec, it is meant to be used like an object. That means the following subroutines should be invoked as methods of Slackware::SBoKeeper::System.

METHODS

is_slackware()

Returns true if we're on a Slackware system, false if we're not.

version()

Returns Slackware system's version number, following the major.minor numbering scheme. Returns undef on non-Slackware systems.

pkgtool_logs()

Returns pkgtool log directory. undef on non-Slackware systems.

packages()

Returns list of installed packages.

packages_by_tag($tag)

Returns list of installed packages with the tag $tag. For example, to get all SlackBuilds.org packages installed on your system:

Slackware::SBoKeeper::System->packages_by_tag('_SBo');
installed($pkg)

Returns true if $pkg is installed, false if not.

FILES

/etc/slackware-version

File present on all Slackware systems that contains the Slackware version number.

AUTHOR

Written by Samuel Young, <samyoung12788@gmail.com>.

COPYRIGHT

Copyright (C) 2024, Samuel Young

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

SEE ALSO

sbokeeper