Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| rh124_rpm [2026/10/20 07:50] – [Examine installed RPM packages] rpjday | rh124_rpm [2026/10/29 09:29] (current) – [Querying an installed package] rpjday | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| $ rpm --query --all | $ rpm --query --all | ||
| $ rpm -qa | $ rpm -qa | ||
| + | |||
| $ rpm -qa | wc -l | $ rpm -qa | wc -l | ||
| - | $ rpm -qa "*kernel*" | + | $ dnf list --installed | wc -l |
| + | |||
| + | $ rpm -qa " | ||
| + | $ rpm -q tree | ||
| + | tree-2.1.0-8.el10.x86_64 | ||
| + | $ | ||
| $ rpm --help | less | $ rpm --help | less | ||
| + | </ | ||
| + | |||
| + | List user-installed packages: | ||
| + | |||
| + | < | ||
| + | $ dnf history userinstalled | ||
| + | Packages installed by user | ||
| + | chrony-4.8-2.el10.x86_64 | ||
| + | dos2unix-7.5.2-3.el10.x86_64 | ||
| + | grub2-pc-1: | ||
| + | grub2-tools-1: | ||
| + | kdump-utils-1.0.58-15.el10.x86_64 | ||
| + | kernel-6.12.0-211.7.3.el10_2.x86_64 | ||
| + | langpacks-en-4.1-3.el10.noarch | ||
| + | lvm2-10: | ||
| + | man-pages-6.06-13.el10_2.noarch | ||
| + | tar-2: | ||
| + | tree-2.1.0-8.el10.x86_64 | ||
| + | unzip-6.0-69.el10.x86_64 | ||
| + | zip-3.0-45.el10.x86_64 | ||
| + | $ | ||
| </ | </ | ||
| Line 17: | Line 44: | ||
| * shared libraries | * shared libraries | ||
| * man pages/info files/doc files | * man pages/info files/doc files | ||
| - | * configuration files | + | * configuration files under ''/ |
| - | * systemd files | + | * data and asset files (templates, icons) under ''/ |
| + | * systemd files under ''/ | ||
| + | * pre/post install/ | ||
| + | * other package dependencies, | ||
| ===== Querying an installed package ===== | ===== Querying an installed package ===== | ||
| Line 52: | Line 82: | ||
| < | < | ||
| - | $ rpm -qR tree | + | $ rpm -qR rpm |
| + | /bin/sh | ||
| + | /bin/sh | ||
| + | /bin/sh | ||
| + | / | ||
| + | / | ||
| + | config(rpm) = 4.19.1.1-23.el10.alma.1 | ||
| + | coreutils | ||
| + | coreutils | ||
| + | curl | ||
| + | findutils | ||
| + | libarchive.so.13()(64bit) | ||
| + | ... snip ... | ||
| + | </ | ||
| + | |||
| + | Test: | ||
| + | |||
| + | < | ||
| + | $ rpm -qi dos2unix | ||
| + | $ rpm -ql dos2unix | less | ||
| </ | </ | ||
| Line 75: | Line 124: | ||
| < | < | ||
| $ sudo rpm -Va | $ sudo rpm -Va | ||
| - | < | + | </code> |
| Break something: | Break something: | ||