For example, if I initiate installation of the Greek language meta-package, I am prompted to install its dependencies and weak dependencies.
$ LC_ALL=C sudo dnf install langpacks-el
[sudo] password for roman:
Last metadata expiration check: 4:03:14 ago on Sat Sep 25 13:17:49 2021.
Dependencies resolved.
===============================================================================
Package Arch Version Repository Size
===============================================================================
Installing:
langpacks-el noarch 3.0-14.fc34 fedora 10 k
Installing dependencies:
autocorr-el noarch 1:7.1.6.2-1.fc34 updates 81 k
langpacks-core-el noarch 3.0-14.fc34 fedora 10 k
langpacks-core-font-el noarch 3.0-14.fc34 fedora 10 k
Installing weak dependencies:
glibc-langpack-el x86_64 2.33-20.fc34 updates 512 k
hunspell-el noarch 1:0.9-7.fc34 fedora 1.7 M
hyphen-el noarch 0.20051018-23.fc34 fedora 9.3 k
libreoffice-help-el x86_64 1:7.1.6.2-1.fc34 updates 3.6 M
libreoffice-langpack-el x86_64 1:7.1.6.2-1.fc34 updates 854 k
mythes-el noarch 0.20070412-25.fc34 fedora 161 k
Transaction Summary
===============================================================================
Install 10 Packages
Total download size: 6.9 M
Installed size: 56 M
Is this ok [y/N]:
However, if I try manually listing the dependencies, I don't see the weak dependencies. How can I look them up?
Here is what I tried.
$ LC_ALL=C dnf repoquery --depends langpacks-el
Last metadata expiration check: 3:15:20 ago on Sat Sep 25 14:07:02 2021.
langpacks-core-el
$ LC_ALL=C dnf repoquery --depends langpacks-core-el
Last metadata expiration check: 3:15:42 ago on Sat Sep 25 14:07:02 2021.
langpacks-core-font-el
$ LC_ALL=C dnf repoquery --depends langpacks-core-font-el
Last metadata expiration check: 3:16:08 ago on Sat Sep 25 14:07:02 2021.
dejavu-sans-fonts
According to the manpage:
dnf [options] repoquery [<select-options>] [<query-options>] [<package-file-spec>]
Searches available DNF repositories for selected packages and displays the requested information about them. It is an equivalent of rpm -q for remote repositories.
--depends
Display capabilities that the package depends on, enhances, recommends, suggests or supplements.