Which of the following commands lists the dependencies of a given dpkg package?
A.
apt-cache depends-on package
B.
apt-cache dependencies package
C.
apt-cache depends package
D.
apt-cache requires package
題解
dpkg 的套件管理可以使用「apt-cache」指令來搜尋套件和顯示套件的資訊。
選項 A,「apt-cache」指令沒有「depends-on」這樣的操作。
選項 B,「apt-cache」指令沒有「dependencies」這樣的操作。
選項 C,「apt-cache」指令可以使用「depends」操作來顯示套件的原始相依關係的資訊。
選項 D,「apt-cache」指令沒有「requires」這樣的操作。
