RedHat/OEL 8 self-repo “package is filtered out by modular filtering”

RedHat introduced using modules in DNF on RHEL version 8 (and above). This opens very interesting new options, however, sometimes – a quick-n-dirty repo is needed. An example – for offline systems, a repo of already installed packages (on exactly similar system) is created for later use.

This used to work well on RHEL version 7, however, with modules, the above mentioned error message might appear.

A quick and simple workaround is to set DNF to ignore module filtering for a specific repository.

In the repo file (in /etc/yum.repos.d/) add the following line:

module_hotfixes=1

This will “flatten” the custom repo and allow for regular, RHEL version 7 compatible package installation.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.