Yum package manager.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 03 Jan 2022 16:30:42 +0200
changeset 2514 0d60a0bad2d6
parent 2513 8ea91a3818b3
child 2515 05c1057a5bec
Yum package manager.
yum.rst
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/yum.rst	Mon Jan 03 16:30:42 2022 +0200
@@ -0,0 +1,66 @@
+
+=====
+ yum
+=====
+
+Search package
+==============
+::
+
+  yum search $pkg
+
+List packages
+=============
+
+All packages::
+
+  yum list all
+
+Installed only::
+
+  yum list installed
+
+Obsolete::
+
+  yum list obsoletes
+
+With updates available::
+
+  yum list updates
+
+List packages from specific repository only::
+
+  dnf --disablerepo="*" --enablerepo=epel list available
+
+Show package details
+====================
+::
+
+  yum info vim
+
+List installed package versions::
+
+  rpm -q kernel
+
+List package files::
+
+  rpm -ql bash
+
+Show package dependencies::
+
+  yum deplist vim
+
+What package provides file
+==========================
+
+Among installed packages::
+
+  rpm -qf /etc/passwd
+  rpm -q --whatprovides /etc/passwd
+
+Search in the repository indices (includes uninstalled packages too + pattern matching)::
+
+  yum whatprovides '*passwd'
+
+  yum provides /etc/yum.repos.d/epel.repo
+  yum provides /etc/yum.repos.d/epel.repo --enablerepo=*