DPKG::Log::Analyse(3pm)

DPKG::Log::Analyse3pm

Analyse a dpkg log

Usage

use DPKG::Log;

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

Version

version 1.20

Overview

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.

Releases

Unchanged in 3 releases since Debian 7 (Wheezy).

  1. 7–9

Author

Patrick Schoenfeld <[email protected]>.

From libdpkg-log-perl 1.20-2 in Debian 9 (Stretch). Parsed by carta from the page's man source.