Linux Administration
medium

Pregunta de Linux Administration #019e3987

Enunciado de la Pregunta
Linux Administration
#dpkg
#purge
#package-removal
#configuration-files
#debian
Medio

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

A

--clean

B

--delete

C

--purge

Correcto
D

–remove

Explicación Oficial / Explicaciones de la Comunidad

The dpkg --purge option completely removes a package along with its configuration files. In Debian-based systems, dpkg is the low-level package manager. When removing a package, the --remove option deletes the package files but leaves configuration files intact, allowing for reinstallation with previous settings. The --purge option goes further by also deleting all configuration files, logs, and other user data associated with the package. The options --clean and --delete are not valid dpkg flags; --clean is used by apt-get to clear the local repository cache, and --delete is not a standard dpkg option. Therefore, to ensure complete removal including configuration files, --purge is the correct choice.