rpm dependance solving....

Jef Spaleta <[email protected]> 08 Apr 2002 16:37:34 -0400
Newsgroups gmane.linux.redhat.rpm.grab
Message-ID <1018298284.2989.48.camel@spatula>
from reading the man page for rpm...it looks like the command

rpm -q -p ftp://path/whatever.rpm  will download only the header
information for that rpm for the query.

So I imagine you could do this as part of the grab --update  routine
with minimal information downloaded to catch the dependancy chain.

something liek rpm -q --requires -p ftp://path/whatever.rpm  for every
rpm on the ftp server would catch the depedance information you need. 
and rpm -q --provides -p ftp://path/whatever.rpm would catch the
provides.

You could probably get away with only looking for the provides in the
header and do the --requires look up during the download phase.

what do you think?  if rpm really only downloads the header part of the
rpm during a -p query...you can't get much smaller than that for a
serverside lookup.


-jef