DevHeads.net

What pulls in weak dependencies?

Hi,

Running `dnf update`, it tries to install:

~~~

... snip ...

Installing weak dependencies:
 mkpasswd                        x86_64 5.4.1-3.fc31           
rawhide                 39 k

... snip ...

~~~

Trying to query for weak dependencies, nothing requires it:

~~~

$ sudo dnf repoquery --whatrecommends mkpasswd
Last metadata expiration check: 0:07:13 ago on Fri Mar  8 23:51:51 2019.

$ sudo dnf repoquery --supplements mkpasswd
Last metadata expiration check: 0:07:53 ago on Fri Mar  8 23:51:51 2019.

~~~

So I wonder how I am supposed to know, why DNF is trying to install such
packages.

Vít

Comments

Re: What pulls in weak dependencies?

By TASAKA Mamoru at 03/08/2019 - 23:03

Vít Ondruch wrote on 2019/03/09 8:03:

$ dnf repoquery --disablerepo=\* --enablerepo=koji-31 --provides mkpasswd 2>/dev/null | while read f ; do echo -n -e "$f\t" ; dnf repoquery --disablerepo=\* --enablerepo=koji-31 --whatrecommends "$f" 2>/dev/null ; echo ; done
mkpasswd = 5.4.1-3.fc31
mkpasswd(x86-64) = 5.4.1-3.fc31
whois-mkpasswd = 5.4.1-3.fc31 libxcrypt-0:4.4.4-1.fc31.x86_64

So libxcrypt-0:4.4.4-1.fc31.x86_64 Recommends whois-mkpasswd , which is provided by mkpasswd .

Regards,
Mamoru

Re: What pulls in weak dependencies?

By =?ISO-8859-1?Q?... at 03/09/2019 - 07:41

Dne 09. 03. 19 v 4:03 Mamoru TASAKA napsal(a):
Thank you. That is actually awful command. I complained in this ticket:

<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1549851#c10" title="https://bugzilla.redhat.com/show_bug.cgi?id=1549851#c10">https://bugzilla.redhat.com/show_bug.cgi?id=1549851#c10</a>

and on top of that created new ticket requesting providing full
information about the packages, which anyhow depend on specific package:

<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1687070" title="https://bugzilla.redhat.com/show_bug.cgi?id=1687070">https://bugzilla.redhat.com/show_bug.cgi?id=1687070</a>

Vít

Re: What pulls in weak dependencies?

By =?ISO-8859-1?Q?... at 03/12/2019 - 07:32

Dne 09. 03. 19 v 12:41 Vít Ondruch napsal(a):
As it turns out, there actually are DNF options for this. Let me
introduce "--depends" and "--whatdepends":

<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1687070#c4" title="https://bugzilla.redhat.com/show_bug.cgi?id=1687070#c4">https://bugzilla.redhat.com/show_bug.cgi?id=1687070#c4</a>

Credits goes to DNF team.

Vít