RPM::Perlonly - a perl only implementaion of a RPM header reader.
use RPM::Perlonly; tie my %rpm, "RPM::Perlonly", "rpm-4.0-1-i586.rpm" or die "Problem, could not open rpm"; print $rpm{'NAME'};
Perl-RPM-Perlonly is a clone of RPM::Header written in only perl, so it provides a way to read a rpm package on systems where rpm is not installed. Perl-RPM-Perlonly can used as a drop in replacement for RPM::Header, if needed also the other way round.
The interface is a tied-hash, there are some tags provided by RPM::Perlonly but not avalible in RPM::Header, a list is provided here:
head1 AUTHOR
Copyright (c) 2001, Troels Liebe Bentsen. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms of LGPL.
To install RPM::Perlonly, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RPM::Perlonly
CPAN shell
perl -MCPAN -e shell install RPM::Perlonly
For more information on module installation, please visit the detailed CPAN module installation guide.