Question: While switching AppStream getting below errors:
# dnf install @<module-name>:<stream> Last metadata expiration check: 2:21:43 ago on Thu 05 Aug 2021 05:53:23 PM IST. Dependencies resolved. The operation would result in switching of module '<module-name>' stream '<stream>' to stream '<stream>' Error: It is not possible to switch enabled streams of a module. It is recommended to remove all installed content from the module, and reset the module using 'dnf module reset <module_name>' command. After you reset the module, you can install the other stream.
In above another stream of the same module already exist. How to switch the module stream?
1. Reset the module using below command:
# dnf module reset <module-name>
2. Install the profiles of a different stream of the module as follows:
# dnf install @<module-name>:<stream>
3. Update or downgrade any packages installed from the previous module stream that were not listed in the profiles installed in the previous step using below command:
# dnf distro-sync
4. Manually remove any remaining packages that were installed from the previous module stream.
# dnf remove <package> ...