Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam 101-500 Topic 1 Question 288 Discussion

Actual exam question for Lpi's 101-500 exam
Question #: 288
Topic #: 1
What is the difference between the --remove and the --purge action with the dpkg command?

Suggested Answer: A Vote an answer

Explanation
The dpkg command is a tool to install, build, remove and manage Debian packages. The option --remove is used to remove an installed package, but it does not remove the configuration files that may have been modified by the user. The option --purge is used to remove an installed package and also delete its configuration files. This can be useful if the user wants to completely uninstall a package and start from scratch if it is reinstalled later. The syntax is: dpkg --remove package or dpkg --purge package. For example, dpkg --remove nginx will remove the nginx web server package, but it will leave the configuration files in /etc/nginxdpkg --purge nginx will remove the nginx package and also delete the configuration files in
/etc/nginx1. The other options are not correct because:
* -remove only removes the program, --purge only removes the config files: This is false, because --purge also removes the program, not just the config files.
* -remove removes a package, --purge also removes all packages dependent on it: This is false, because
--purge does not remove any other packages, only the specified one. To remove a package and its dependencies, the apt-get command can be used with the option --auto-remove2.
* -remove removes only the package file itself, --purge removes all files related to the package: This is false, because --remove also removes the files that are installed by the package, not just the package file itself. --purge only removes the configuration files that are not removed by --remove. References:
* dpkg(1) - dpkg - Debian buster - Debian Manpages
* How to remove a package and its dependencies with dpkg? - Ask Ubuntu

by Alexia at Apr 07, 2025, 10:35 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.