-
Notifications
You must be signed in to change notification settings - Fork 0
Cleanup Scripts
XsMagical edited this page Aug 12, 2025
·
1 revision
The Cleanup Scripts in Linux Tools are designed to safely remove unnecessary files, packages, and caches from your Linux system without breaking anything important.
- Free up disk space by removing unneeded system files and packages.
- Keep the system optimized without risking essential components.
- Provide optional deep-clean modes for advanced users.
File: universal_cleanup.sh
- Works on Fedora/RHEL, Ubuntu/Debian, Arch, and openSUSE.
- Detects your package manager and removes:
- Orphaned/unneeded packages
- Old package caches
- Unused Flatpak runtimes and apps
- Disabled Snap revisions
- Old logs and journal files
- User thumbnails and trash
- Development caches (pip, npm, yarn, cargo)
- Optional cleaning:
- Steam shader and GPU caches
- Unused Docker images, containers, and volumes
- Skips already clean areas for faster runs.
- Logs every action for review.
https://github.com/XsMagical/Linux-Tools/tree/main/scripts/cleanup
- Designed to be safe by default β no destructive actions unless specifically enabled with flags.
- Can be re-run periodically to maintain a clean system.
Pushing Linux forward with safe, universal automation tools for all skill levels.
- Lead Developer: XsMagical
- GitHub Repository: Linux-Tools
π‘ These scripts are tested across multiple distros to ensure compatibility and safety.
Feedback and contributions are always welcome to help make them even better.
Universal scripts by Team Nocturnal
- Home: Home
- Post-Setup: Post-Setup-Scripts
- Gaming: Gaming-Scripts
- NVIDIA Drivers: NVIDIA
- Update: Update-Scripts
- Cleanup: Cleanup-Scripts
- Common: Common-Includes
Milestones
- v1.0 baseline (core presets + docs)
- Universal Cleanup v1
- Universal Update v1
- Gaming overlays guide (per-game)
- NVIDIA driver automation guide
- Distro matrix (tested + notes)
Docs
- Wiki Home
- Post-Setup overview
- Gaming overview
- NVIDIA driver overview
- Update overview
- Cleanup overview
Scripts
-
post-setup/tn_xs_post_install.sh -
gaming/universal_gaming_setup.sh -
drivers/tn_universal_nvidia_signed.sh -
update/* -
cleanup/universal_cleanup.sh -
common/header.sh