Question 270
For an installed RHEL 10 system, the administrator must identify the installed rpm package that owns a known file (package coreutils; file /usr/bin/tar). Which RPM query provides the requested evidence?
Explanation
Correct Answer
rpm -qf looks up which installed package owns the given file path This query answers the stated inventory question. This matches the stated requirement to identify the installed rpm package that owns a known file (package coreutils; file /usr/bin/tar). By contrast, the plausible alternative `rpm -q coreutils` has the effect: rpm -q queries whether the named RPM package is installed and reports its package version; that operation would not achieve the requested result.
Incorrect Answers
rpm -q queries whether the named RPM package is installed and reports its package version. The stated task is to identify the installed rpm package that owns a known file (package coreutils; file /usr/bin/tar). Instead, `rpm -qf /usr/bin/tar` is the relevant alternative because rpm -qf looks up which installed package owns the given file path This query answers the stated inventory question.
rpm -ql enumerates files belonging to a particular installed package. The stated task is to identify the installed rpm package that owns a known file (package coreutils; file /usr/bin/tar). Instead, `rpm -qf /usr/bin/tar` is the relevant alternative because rpm -qf looks up which installed package owns the given file path This query answers the stated inventory question.
rpm -qi prints detailed metadata for an installed package. The stated task is to identify the installed rpm package that owns a known file (package coreutils; file /usr/bin/tar). Instead, `rpm -qf /usr/bin/tar` is the relevant alternative because rpm -qf looks up which installed package owns the given file path This query answers the stated inventory question.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests