$
Learn Linux handbook
en
XP:0
Quest 44Purger
+180 XP

Purging Packages (apt purge)

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

Concept & Overview

When uninstalling software on Linux, standard apt remove uninstalls application binaries but leaves system configuration files behind in case you reinstall later. To completely eliminate a software package AND erase all associated configuration files, we use apt purge (or apt remove --purge).

- The sudo apt purge command removes the application and wipes out all remaining configuration files.
- Because purging modifies system-wide folders and configuration files, it requires superuser (sudo) privileges.

Let's completely remove a package and its configuration files. Run sudo apt purge tree to purge the tree program from the system.

Command Syntax Reference

Command / SyntaxDescription
sudo apt purge treePurge package and wipe its configuration files

Verification Objectives

These conditions will be automatically verified when you run commands inside the interactive terminal simulator:

  • ○
    Purge package "tree" using "sudo apt purge tree"

Ready to complete Quest 44?

Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.