DPKG::Log::Analyse(3) Analyse a dpkg log

VERSION

version 1.20

SYNOPSIS

use DPKG::Log;

my $analyser = DPKG::Log::Analyse->new('filename' => 'dpkg.log'); $analyser->analyse;

DESCRIPTION

This module is used to analyse a dpkg log.

METHODS

$analser = DPKG::Log::Analyse->new('filename' => 'dpkg.log')
$analyser = DPKG::Log::Analyse->new('log_handle' => \$dpkg_log)
Returns a new DPKG::Log::Analyse object. Filename parameter can be omitted, it defaults to /var/log/dpkg.log.

Its possible to specify an existing DPKG::Log object instead of a filename. This will be used and overrides any filename setting.

$analyser->analyse;
Analyse the debian package log.
$analyser->newly_installed_packages
Return all packages which were newly installed in the dpkg.log.
$analyser->upgraded_packages
Return all packages which were upgraded in the dpkg.log.
$analyser->removed_packages
Return all packages which were removed in the dpkg.log.
$analyser->unpacked_packages
Return all packages which are left in state 'unpacked'.
$analyser->halfinstalled_packages
Return all packages which are left in state 'half-installed'.
$analyser->halfconfigured_packages
Return all packages which are left in state 'half-configured'.
$analyser->installed_and_removed_packages
Return all packages which got installed and removed.

AUTHOR

Patrick Schoenfeld <[email protected]>.

COPYRIGHT AND LICENSE

Copyright (C) 2011 Patrick Schoenfeld <[email protected]>

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.