Install RPM package.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 18 Jan 2024 23:46:05 +0200
changeset 2575 9615c2645c93
parent 2574 ed399b8e9fca
child 2576 67368165da98
Install RPM package.
dnf.rst
--- 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
 ====================