Dealing with streams.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 28 Feb 2023 17:12:36 +0200
changeset 2562 c255185c5f0b
parent 2561 37a80bcdba4b
child 2563 030d99189c02
Dealing with streams.
dnf.rst
--- 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
+
+