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 questionsThe 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.
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.
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.
Keep practicing
Take the free 1Z0-106 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 1Z0-106 practice questions
- Question 1Examine this udev device naming rule which gets processed successfully: makefile KERNEL==…
- Question 2Which two statements are true about removing a physical volume (PV) from a volume group (…
- Question 3Which command produces human-readable timestamps in kernel ring buffer messages?
- Question 4Which two statements are true about the configuration and use of cron or anacron?
- Question 6Which two statements are true about the proc and sys file systems?
- Question 7Which is true about the /etc/sysconfig directory in an Oracle Linux 8 system?
