101-400 Exam QuestionsBrowse all questions from this exam

101-400 Exam - Question 18


Which of the following commands lists the dependencies of a given dpkg package?

Show Answer
Correct Answer: C

The command to list the dependencies of a given dpkg package is `apt-cache depends package`. This command displays a list of dependencies for the specified package, including both direct and indirect dependencies.

Discussion

2 comments
Sign in to comment
chevreuil00Option: C
Aug 19, 2022

C is correct https://itsfoss.com/check-dependencies-package-ubuntu/

DuboisNicolasDuclairOption: C
Oct 21, 2023

The command that lists the dependencies of a given dpkg package is: C. `apt-cache depends package` You can use `apt-cache depends package` to display a list of dependencies for the specified package. This command shows both the package's dependencies and the packages that depend on it.