Install RPM package.
--- a/dnf.rst Sat Dec 16 20:53:00 2023 +0200
+++ b/dnf.rst Thu Jan 18 23:46:05 2024 +0200
@@ -111,6 +111,23 @@
dnf repoquery --installed --whatrequires $PKG
rpm -q --whatrequires $PKG
+Install package
+===============
+
+By package name::
+
+ dnf install $PKG
+
+By a package file::
+
+ rpm -i $PKG.rpm
+ rpm --install $PKG.rpm
+
+Update a package by a file (same as install but removes all earlier versions)::
+
+ rpm -U $PKG.rpm
+ rpm --upgrade $PKG.rpm
+
Dealing with streams
====================