[Rule-list] scripts for RPM dependencies analysis

Ed Blackman rule-list at edgewood.to
Sat Jul 27 07:16:50 EEST 2002


On Fri, Jul 26, 2002 at 11:41:31PM +0200, Marco Fioretti wrote:
> On Fri, Jul 26, 2002 01:13:39 at 01:13:39AM +0200, Martin Stricker wrote:
> About how to do it, I was thinking to something like:
> 
> 1) run rpm -q --requires, --whatrequires and others option on every
> RPM in the three standard RH disks, dumping everything to a flat file.

Redhat provides the rpmdb-redhat RPM, which installs an RPM database
with all the standard packages "installed" in
/usr/lib/rpmdb/i386-redhat-linux/redhat.  So you don't have to query
or install each separate rpm.  Just use "rpm -q --dbpath
/usr/lib/rpmdb/i386-redhat-linux/redhat ..."

> 2) Chew that file with Perl until it produces for every package the
> information we need.

If you're going to use Perl anyway, you may want to use the
RPM::Database module available on CPAN.  That'll save the step of
having to convert to an intermediate database.

Ed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/rule-list/attachments/20020727/1876a53a/attachment.pgp>


This full static mirror of the Run Up to Date Linux Everywhere Project mailing list, originally hosted at http://lists.hellug.gr/mailman/listinfo/rule-list, is kept online by Free Software popularizer, researcher and trainer Marco Fioretti. To know how you can support this archive, and Marco's work in general, please click here