Cleaner tools for Linux Debian Optimized for root-level system maintenance.
- 🗂️ Clean APT cache — Free up space used by downloaded package files
- 🗑️ Remove old config files — Purge leftover configs from uninstalled packages
- 🐧 Remove old kernels — Keep only the kernels you need
- 🪣 Empty every trash — Wipe all trash directories system-wide
⚠️ This is the Root Version — Run from the root terminal.
Open a root terminal and run the following commands:
# Clone the repository
git clone https://github.com/spyschools/clean-linux-system-root.git
# Navigate into the directory
cd clean-linux-system-root
# Make the script executable
chmod +x *Preview what will be cleaned without making any changes:
./clean_system.sh --dry-runRun the full cleanup:
./clean_system.shLooking for a non-root version for everyday home use?
👉 clean-linux-system — Tools for home Linux users
- Debian-based Linux distribution (Debian, Ubuntu, Linux Mint, etc.)
- Root or sudo access
- Bash shell
Always run --dry-run first to review what will be removed before performing the actual cleanup. Use at your own risk.
This project is open source. Contributions and feedback are welcome!