I have a set of packages (*.rpm). For each package I can do rpm -qRp <package>
to list requires, but I would like to install them (those requires) without installing the packages themselves. The requires all live in enabled repositories. Is there some easy way to do this without writing my own script that would parse output of rpm -qRp ...
for example.
I know I could do it by installing everything with requires (yum localinstall
) and then uninstalling the original packages, but the problem is that my set contains packages with both dependencies and conflicts in between them. The required packages however don't conflict. I would have to do multiple yum localinstall <list>
followed by yum remove <list>
and make sure the packages in list don't conflict.
I there a better way? I would basically like something like yum-builddep
, but for requires, not buildrequires.
My distros are Fedora
/RHEL