Linux Foundation Certified System Administrator (LFCS) — Question 15
Which of the following commands lists the dependencies of a given dpkg package?
Answer options
- A. apt-cache depends-on package
- B. apt-cache dependencies package
- C. apt-cache depends package
- D. apt-cache requires package
Correct answer: C
Explanation
The correct command is 'apt-cache depends package', which accurately retrieves the dependencies for a given package. The other options either contain incorrect syntax or do not exist as valid commands in the apt-cache utility.