This is actually possible with --setopt=install_weak_deps=False, contrary to the existing documentation.
--setopt=install_weak_deps=False
Tested on Fedora 33 with fennel:
fennel
~ ❯ sudo dnf install fennel Last metadata expiration check: 0:01:01 ago on Fri 18 Dec 2020 04:51:33 PM PST. Dependencies resolved. ============================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================== Installing: fennel noarch 0.7.0-2.fc33 updates 79 k Installing weak dependencies: lua-readline x86_64 2.7-1.fc33 updates 23 k Transaction Summary ============================================================================================================================================================================== Install 2 Packages Total download size: 102 k Installed size: 444 k Is this ok [y/N]: n Operation aborted. ~ took 6s ❯ sudo dnf --setopt=install_weak_deps=False install fennel Last metadata expiration check: 0:01:36 ago on Fri 18 Dec 2020 04:51:33 PM PST. Dependencies resolved. ============================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================== Installing: fennel noarch 0.7.0-2.fc33 updates 79 k Transaction Summary ============================================================================================================================================================================== Install 1 Package Total download size: 79 k Installed size: 388 k Is this ok [y/N]: n Operation aborted. ~ took 6s ❯ sudo dnf install fennel -y Last metadata expiration check: 0:02:18 ago on Fri 18 Dec 2020 04:51:33 PM PST. Dependencies resolved. ============================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================== Installing: fennel noarch 0.7.0-2.fc33 updates 79 k Installing weak dependencies: lua-readline x86_64 2.7-1.fc33 updates 23 k Transaction Summary ============================================================================================================================================================================== Install 2 Packages Total download size: 102 k Installed size: 444 k Downloading Packages: (1/2): fennel-0.7.0-2.fc33.noarch.rpm 180 kB/s | 79 kB 00:00 (2/2): lua-readline-2.7-1.fc33.x86_64.rpm 49 kB/s | 23 kB 00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Total 118 kB/s | 102 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : lua-readline-2.7-1.fc33.x86_64 1/2 Installing : fennel-0.7.0-2.fc33.noarch 2/2 Running scriptlet: fennel-0.7.0-2.fc33.noarch 2/2 Verifying : fennel-0.7.0-2.fc33.noarch 1/2 Verifying : lua-readline-2.7-1.fc33.x86_64 2/2 Installed: fennel-0.7.0-2.fc33.noarch lua-readline-2.7-1.fc33.x86_64 Complete! ~ took 6s ❯ sudo dnf remove lua-readline Dependencies resolved. ============================================================================================================================================================================== Package Architecture Version Repository Size ============================================================================================================================================================================== Removing: lua-readline x86_64 2.7-1.fc33 @updates 56 k Transaction Summary ============================================================================================================================================================================== Remove 1 Package Freed space: 56 k Is this ok [y/N]: n Operation aborted.
Signed-off-by: Michel Alexandre Salim michel@michel-slm.name
:thumbsup:
Pull-Request has been merged by ngompa
This is actually possible with
--setopt=install_weak_deps=False, contrary tothe existing documentation.
Tested on Fedora 33 with
fennel:Signed-off-by: Michel Alexandre Salim michel@michel-slm.name