English
$ sudo dnf install ruby
$ sudo dnf module install ruby:2.6/default
$ sudo dnf mark group ruby
$ sudo dnf module remove ruby:2.6/default
$ sudo dnf module remove MODULE:STREAM/PROFILE
Advanced
Because modules use the __group__ reason, which is weker than __user__ used by the `dnf install` command, the package stays on the system after running the `dnf module remove` command. "Downgrading" it to __group__, however, makes the `dnf module remove` remove it as well.
__dependency__
__group__
In general, to remove a module installed on your system, use the following command:
In this case, running the `dnf module remove` command would not remove the `ruby` package, as DNF remembers that package has been explicitly installed.
Removing modules
That is because DNF remembers a reason why a package has been installed. There are three, sorted from the strongest:
There is a situation when a specific package has been installed first, and then a module has been installed after that. Example:
To make the `ruby` package uninstalled with the `dnf module remove` command, run the following:
__user__