1Z0-106 practice question 5 of 15

Examine this output: Last metadata expiration check: 4:30:21 ago on Mon 26 Oct 2020 03:09:52 PM GMT Installed Packages Name : gzip Version : 1.9…

Full set: 60 questions
Examine this output: Last metadata expiration check: 4:30:21 ago on Mon 26 Oct 2020 03:09:52 PM GMT Installed Packages Name : gzip Version : 1.9 Release : 9.el8 Architecture : x86_64 Size : 412 k Source : gzip-1.9-9.el8.src.rpm Repository : @System From repo : anaconda Summary : The GNU data compression program URL : http://www.gzip.org/ License : GPLv3+ and GFDL Description : The gzip package contains the popular GNU gzip data compression program. Gzipped files have a .gz extension. Gzip should be installed on your system, because it is a very commonly used data compression program. Which command generated it?
Answer options
A: dnf list /usr/bin/gzip
B: dnf provides /usr/bin/gzip
C: dnf info /usr/bin/gzip Correct answer
D: dnf search /usr/bin/gzip
Correct Answer:
C. dnf info /usr/bin/gzip
Explanation

The dnf info command is used to display detailed information about a package. The output provided in the question, which includes fields like Name, Version, Release, Size, Source, Repository, and a full Description, is the standard format for this command. DNF is capable of resolving a file path, such as /usr/bin/gzip, to the package that owns it (gzip) and then displaying the detailed information for that specific package. The "Installed Packages" heading confirms that information for a package on the local system is being displayed.

Why Incorrect

A. dnf list /usr/bin/gzip: This command lists packages in a brief, tabular format (typically one line per package), not the detailed, multi-line block shown.
B. dnf provides /usr/bin/gzip: This command identifies which package owns a file, but its output is a concise listing of the package name and summary, not the full details.
D. dnf search /usr/bin/gzip: This command searches package metadata for a keyword and returns a list of matching packages with their summaries, not detailed information for one specific package.

References

1. Oracle® Linux 8: Managing Software on Oracle Linux

Section 2.3.5 Displaying Package Information.

This official Oracle documentation states

"To display more detailed information about a package

use the dnf info command." The example output provided in the documentation for dnf info precisely matches the structure and fields shown in the question.

2. dnf(8) Linux manual page

COMMANDS section.

The man page for the dnf utility describes the info command as follows: "Display details about a package or a group of packages." This aligns with the detailed output provided. In contrast

it describes list as listing packages

provides as finding the package for a file

and search as searching metadata for keywords

all of which produce different output formats.

Scroll to Top