DNF cannot perform any action on _installed_ module if originate repo is disabled.
rpm -q httpd
The package was installed as part of httpd module. httpd module was installed.
Let's suppose there is no Internet connection. And user disabled AppStream repo.
With this DNF completely unable to manage already installed httpd module.
It cannot be removed. User cannot get any information about this installed module.
yum --disablerepo='*' module remove httpd
Problems in request:
missing groups or modules: httpd
Nothing to do.
This bug is about allowing to perform actions on installed modules.
For example: allow user to get list of installed modules, even all repos are disabled.
The behavior is improved by fail-safe mechanism that stores module information about enabled streams.
This has been fixed already as part of bug#1623128.
When a repo is disabled, cached modulemd is used and DNF operates as usual.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.