Bug 1601603 - "dnf --disableexcludes=all upgrade" wants to install packages from updates-modular
Summary: "dnf --disableexcludes=all upgrade" wants to install packages from updates-mo...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 28
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-16 20:27 UTC by Edgar Hoch
Modified: 2018-11-22 18:00 UTC (History)
6 users (show)

Fixed In Version: dnf-4.0.4
Clone Of:
Environment:
Last Closed: 2018-11-22 18:00:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Output of "dnf upgrade" (3.71 KB, text/plain)
2018-07-16 20:27 UTC, Edgar Hoch
no flags Details
Output of "dnf --disableexcludes=all upgrade" (on the same system) (20.56 KB, text/plain)
2018-07-16 20:28 UTC, Edgar Hoch
no flags Details

Description Edgar Hoch 2018-07-16 20:27:00 UTC
Description of problem:

I have installed package fedora-repos-modular (it is a mandatory package of group server-product). But I haven't installed any package from modular repos.

If I run "dnf upgrade", all works as expected. At the moment no updates need to be installed.

If I run "dnf --disableexcludes=all upgrade" on the same system, then dnf wants to replace (upgrade) some packages with packages from updates-modular repository.

This should not happen!

According to the man pages of dnf and dnf.conf the option --disableexcludes=all should disable excludepkgs options in contained in some repository configuration files in /etc/yum.repos.d/*.repo or dnf config files /etc/dnf/* . But it should  do nothing special with modular repositories.

On most systems, we have no excludepkgs options set. On systems with nvidia gpu cards, we have set the following excludepkgs option, to prevent automatic updates of the nvidia and cuda packages that would install newer libraries that will be incompatible with a loaded kernel driver (that can be only unloaded at reboot or when it is unused, e.g. no processes uses the gpus). But the effect of 
--disableexcludes=all option according to modular packages is the same.

# grep -r exclude /etc/yum.repos.d/ /etc/dnf/
/etc/dnf/dnf.conf:excludepkgs=*nvidia*,*cuda*




Version-Release number of selected component (if applicable):
dnf-2.7.5-12.fc28.noarch
fedora-repos-28-3.noarch
fedora-repos-modular-28-3.noarch


How reproducible:
Always

Comment 1 Edgar Hoch 2018-07-16 20:27:32 UTC
Created attachment 1459266 [details]
Output of "dnf upgrade"

Comment 2 Edgar Hoch 2018-07-16 20:28:39 UTC
Created attachment 1459267 [details]
Output of "dnf --disableexcludes=all upgrade" (on the same system)

Comment 3 Martin Hatina 2018-07-26 08:22:13 UTC
Fixed in https://github.com/rpm-software-management/dnf/pull/1144


Note You need to log in before you can comment on or make changes to this bug.