LPIC-1 Exam 101 (Linux Administrator) — Question 20
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 dependency information for the specified dpkg package. The other options either use incorrect syntax or refer to non-existent commands for this purpose.