Purging Packages (apt purge)
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.
sudo apt purge tree to purge the tree program from the system.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
sudo apt purge tree | Purge 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.