Image

Prereq list for RPMs?

Using SuSE 8

I'm trying to automate the installation of RPMs on a severely cut-down system, which has the rpm command, but lacks whatever RPM database that yast2 normally accesses to find pre-reqs. I do have access to another machine that has the database, but I can't mess with the cut-down system too much beyond installing RPMs from the command line.

Is there some way to get rpm or yast2 (or some other tool?) to spit out a recursive list of all pre-req packages for a given RPM (and all their prereqs, and so on), including any that are already installed? Right now, I'm building the prereq list by hand, and it's somewhat laborious.

Thanks for your time,