On Wednesday, November 2, 2016 5:51:51 PM CET 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'.
Is there something similar to 'dnf repoquery --whatrequires foo-libs --all-deps'
in RPM? See the following:
$ rpm -q --whatrequires libarchive
no package requires libarchive
$ sudo dnf remove libarchive
Dependencies resolved.
Error: The operation would result in removing the following protected packages: dnf.
Thanks,
Pavel