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/19 20:17] – [Examine installed RPM packages] rpjday | rh124_rpm [2026/10/19 20:36] (current) – [Querying an installed package] rpjday | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| $ rpm -qa | wc -l | $ rpm -qa | wc -l | ||
| $ rpm -qa " | $ rpm -qa " | ||
| + | </ | ||
| + | |||
| + | ===== Possible contents of an RPM package ===== | ||
| + | |||
| + | * binary executables | ||
| + | * shared libraries | ||
| + | * man pages/info files/doc files | ||
| + | * configuration files | ||
| + | * systemd files | ||
| + | |||
| + | ===== Querying an installed package ===== | ||
| + | |||
| + | General information about the package: | ||
| + | |||
| + | < | ||
| + | $ rpm -qi setup | ||
| + | Name : setup | ||
| + | Version | ||
| + | Release | ||
| + | Architecture: | ||
| + | Install Date: Sat 17 Oct 2026 12:17:46 PM | ||
| + | Group : System Environment/ | ||
| + | Size : 737783 | ||
| + | License | ||
| + | Signature | ||
| + | RSA/SHA256, Fri 06 Jun 2025 09:44:36 AM, Key ID dee5c11cc2a1e572 | ||
| + | RSA/SHA256, Fri 06 Jun 2025 09:44:37 AM, Key ID dee5c11cc2a1e572 | ||
| + | Source RPM : setup-2.14.5-7.el10.src.rpm | ||
| + | Build Date : Thu 05 Jun 2025 03:29:25 PM | ||
| + | Build Host : s390x-builder02.almalinux.org | ||
| + | Packager | ||
| + | Vendor | ||
| + | URL : https:// | ||
| + | Summary | ||
| + | Description : | ||
| + | The setup package contains a set of important system configuration and | ||
| + | setup files, such as passwd, group, and profile. | ||
| + | </ | ||
| + | |||
| + | Runtime dependencies of the package: | ||
| + | |||
| + | < | ||
| + | $ rpm -qR tree | ||
| </ | </ | ||
| Line 14: | Line 57: | ||
| < | < | ||
| - | $ rpm -ql shadow-utils | + | $ rpm -ql shadow-utils |
| + | </ | ||
| + | |||
| + | Identify the package containing a file: | ||
| + | |||
| + | < | ||
| + | $ rpm -qf / | ||
| + | setup-2.14.5-7.el10.noarch | ||
| + | $ | ||
| </ | </ | ||