Which of the following commands is used to update the list of available packages when using dpkg based package management?
A.
apt-get update
B.
apt-get upgrade
C.
apt-cache update
D.
apt-get refresh
E.
apt-cache upgrade
題解
dpkg 的套件管理可以使用「apt-get」指令來處理套件的檢查、更新、安裝和移除。也可以使用「apt-cache」指令來搜尋套件和顯示套件的資訊。
選項 A,使用「apt-get」指令的「update」操作,可以更新套件列表。
選項 B,使用「apt-get」指令的「upgrade」操作,可以更新(升級)套件。
選項 C,「apt-cache」指令沒有「update」這樣的操作。
選項 D,「apt-get」指令沒有「refresh」這樣的操作。
選項 E,「apt-cache」指令沒有「upgrade」這樣的操作。
