RPM2::LocalInstalled - Perl extension that returns a list of locally installed RPMs


RPM2-LocalInstalled documentation  | view source Contained in the RPM2-LocalInstalled distribution.

Index


NAME

Top

RPM2::LocalInstalled - Perl extension that returns a list of locally installed RPMs

SYNOPSIS

Top

  use RPM2::LocalInstalled;

  my $rpms = RPM2::LocalInstalled->new();

  my $all_rpms = $rpms->list_all();
  my $newest_rpms = $rpms->list_newest();
  my $older_rpms = $rpms->list_older();

  $all_rpms is a hash with the rpm package name as hash keys. Behind the hash
  key there will be an array containing a hash of all tags you requested (or
  the default tags: version release epoch) from the different packages
  installed (if more than one is installed (often happens for the kernel
  package).

  $newest_rpms is a hash, but containing only one hash, containing the tags you
  requested.

  $older_rpms is 'the difference between $all_rpms and $newest_rpms. It
  lists only older packages. The ones that should be removed sooner or later...

  You can define the tags @ new this way (example):

  my $rpms = RPM2::LocalInstalled->new(
	tags => [ qw/group size packager license/ ],
  );

  Note, that RPM2::LocalInstalled will allways add the default tags
  (version, release, epoch), as they are used in newest_rpms()
  for version comparison.

DESCRIPTION

Top

RPM2::LocalInstalled is a wrapper around RPM2. RPM2::LocalInstalled will return lists of locally installed RPMs. This is usefully for comparing with a list of updates, eg. from Config::YUM.

EXPORT

None by default.

SEE ALSO

Top

RPM2 Sort::Version

AUTHOR

Top

Oliver Falk, <oliver@linux-kernel.at>

COPYRIGHT AND LICENSE

Top


RPM2-LocalInstalled documentation  | view source Contained in the RPM2-LocalInstalled distribution.