On 11/02/2016 12:51 PM, Pavel Raiskup wrote:
Consider we have package 'foo-libs' that provides set of
libraries.
How do I get all dependant packages (for batch rebuild of dependencies after
package update)? Something which takes soft dependencies into account, too.
Some packages might depend on 'foo-libs' explicitly, some depend on soname
(implicitly), some depend on particular file within package (say
/usr/libexec/libfoohelper).
Is there facility within 'dnf repoquery' that gives ultimate answer? I can do
sub-queries later do pick the important rebuild candidates.
Also, I would be curious about "ultimate" repoquery to get list of SOURCE
dependants, e.g. on 'foo-devel'.
`dnf repoquery --enablerepo=*source --whatrequires foo-libs --all-deps` should
be what you're asking for.