Bird
0
0

Which command removes a package but keeps its configuration files on a Debian-based system?

easy📝 Conceptual Q1 of 15
Linux CLI - Package Management
Which command removes a package but keeps its configuration files on a Debian-based system?
Asudo apt remove package_name
Bsudo apt purge package_name
Csudo apt clean package_name
Dsudo apt autoremove package_name
Step-by-Step Solution
Solution:
  1. Step 1: Understand removal commands

    The remove command deletes the package but keeps config files.
  2. Step 2: Differentiate from purge

    purge deletes package and config files; clean and autoremove do other cleanup tasks.
  3. Final Answer:

    sudo apt remove package_name -> Option A
  4. Quick Check:

    Remove without config deletion = sudo apt remove [OK]
Quick Trick: Use 'remove' to keep configs, 'purge' to delete all [OK]
Common Mistakes:
  • Confusing 'remove' with 'purge'
  • Using 'clean' to remove packages
  • Thinking 'autoremove' removes specific packages

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes