Exam LFCS All QuestionsBrowse all questions from this exam
Question 33

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

    Correct Answer: C

    The '--purge' option in dpkg is used to completely remove a package along with its configuration files. Using the command 'sudo dpkg --purge package_name' will ensure that both the package and its configuration files are entirely removed from the system. The other options either do not remove the package or leave behind configuration files.

Discussion
BuruguduystunstugudunstuyOption: C

Option C '--purge' will completely remove the package, including its configuration files. To remove a package using dpkg, you can use the following command: sudo dpkg --purge package_name This will remove the package and all its configuration files. Option A '--clean' option does not remove the package or its configuration files. It simply removes the downloaded package files from the system but leaves the package itself installed. Option B '--delete' option removes the package, but does not remove its configuration files. OptionD '--remove' option removes the package, but does not remove its configuration files or any other files that were installed outside of the package's control.