What command removes a package in APT without modifying configuration files?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command that removes a package in APT without modifying configuration files is indeed the command that you identified. When using the command to remove a package, it typically deletes the package binaries and dependencies but retains the associated configuration files in case you wish to reinstall or reconfigure the package later. This is particularly useful for users who want to test packages temporarily without losing their configuration settings.

In contrast, the option that involves purging the package does modify configuration files by removing both the package and its associated configuration files, which might not be desired in situations where you plan on reinstalling the package later and want to maintain its previous settings. The other options mentioned, like "delete" and "uninstall," do not correspond to valid commands in the APT package management system, making them incorrect choices.

Thus, the primary focus for removal while keeping configuration files intact is the command that correctly accomplishes this within the APT system.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy