Error: It is not possible to switch enabled streams of a module unless explicitly enabled via configuration option   
module\_stream\_switch.
It is recommended to rather 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.

使用dnf安装同一软件的不同版本报错,原因是centos8为dnf包管理器提供了模块化安装的方式,通过模块可以安装同一个软件的不同版本到系统。以postgresql为例,执行dnf module reset Postgresql -y 将postgresql的版本重置为默认版本,dnf module install Postgresql:9.6重新安装postgresql9.6版本