• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Switch Module Streams in CentOS/RHEL 8

by admin

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> ...
Note: Ensure the OL8 AppStream Latest channel is enabled. The <module-name> is the name of the module and <stream> is the desired stream. For example: @php:7.4

Filed Under: CentOS/RHEL, CentOS/RHEL 8, Linux

Some more articles you might also be interested in …

  1. macof: command not found
  2. CentOS / RHEL : How to adjust the telnet timeout (and how to disable it)
  3. Linux OS Service ‘winbind’
  4. All Linux Compress/Decompress Commands
  5. lvcreate Command Examples in Linux
  6. startkde: command not found
  7. Linux OS Service ‘named’
  8. How To Masquerade Sender Address In Sendmail in CentOS/RHEL
  9. Understanding iscsiadm Utility in CentOS / RHEL
  10. How to disable NUMA on EFI Boot Loaders using GRUB2 (CentOS/RHEL 6)

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright