When removing a package, which of the following dpkg options will completely remove the files including configuration files?

A. --clean
B. --delete
C. --purge
D. --remove

題解

dpkg 的套件管理可以使用「dpkg」指令來操作本地的 deb 檔案和套件。

選項 A,「dpkg」指令沒有「--clean」這個參數。

選項 B,「dpkg」指令沒有「--delete」這個參數。

選項 C,「dpkg」指令的「--purge」參數可以移除套件和這個套件的設定檔。

選項 D,「dpkg」指令的「--remove」參數可以移除套件,但會保留這個套件的設定檔。