On Thursday, November 10, 2016 11:46:16 AM CET Pádraig Brady wrote:
On 10/11/16 07:08, Pavel Raiskup wrote:
> 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.
You can do that with `rpm -e --test`.
I've a wrapper script for deb and rpm at:
http://www.pixelbeat.org/scripts/whatrequires
Thanks to everybody for suggestions; yes those are commands I need.
There's now also rhbz#1393704 to have it implemented in RPM.
Pavel