Dealing with streams.
--- a/dnf.rst Mon Feb 27 00:59:42 2023 +0200
+++ b/dnf.rst Tue Feb 28 17:12:36 2023 +0200
@@ -70,3 +70,32 @@
dnf repoquery --alldeps --whatrequires $PKG
dnf repoquery --installed --whatrequires $PKG
rpm -q --whatrequires $PKG
+
+Dealing with streams
+====================
+
+Streams group related package at specific compatible version. Only one version could be installed in
+system in time.
+
+For example Node.js has lots of parallel versions::
+
+ bash# sudo dnf module list nodejs
+ Name Stream Profiles Summary
+ nodejs 10 [d] common [d], development, minimal, s2i Javascript runtime
+ nodejs 12 common [d], development, minimal, s2i Javascript runtime
+ nodejs 14 common [d], development, minimal, s2i Javascript runtime
+ nodejs 16 common [d], development, minimal, s2i Javascript runtime
+ nodejs 18 common [d], development, minimal, s2i Javascript runtime
+
+You select specific stream::
+
+ sudo dnf module install nodejs:18
+
+In order to change stream one need to remove all the packages from original stream and reset the
+stream::
+
+ sudo dnf module remove nodejs
+ sudo dnf module reset nodejs
+ sudo dnf module install nodejs:16
+
+