rh124_rpm

This is an old revision of the document!


RHEL 10 rpm command

$ rpm -qa
$ rpm -qa | wc -l
$ rpm -qa "*kernel*"
  • binary executables
  • shared libraries
  • man pages/info files/doc files
  • configuration files
  • systemd files

List the files in a package (you've seen this before):

$ rpm -ql shadow-utils | less

Identify the package containing a file:

$ rpm -qf /etc/passwd
setup-2.14.5-7.el10.noarch
$
  • rh124_rpm.1792441837.txt.gz
  • Last modified: 2026/10/19 20:30
  • by rpjday