A CLI tool for safely cleaning Arch Linux systems.
Project description
ArchClean
A robust CLI tool for safely cleaning Arch Linux systems. ArchClean helps you maintain a tidy system by automating cache cleaning, removing orphans, and analyzing disk usage, all with safety checks and user confirmation.
Features
- System Cleaning:
- Clean Pacman cache (
pacman -Sc). - Clean AUR helper caches (
yay,paru). - Remove orphan packages (
pacman -Qtdq). - Vacuum systemd journals.
- Clean Pacman cache (
- Home Directory:
- Clean thumbnail cache.
- Empty Trash.
- Language Ecosystems:
- Detects and cleans caches for Python (
pip), Node.js (npm,yarn), and Go.
- Detects and cleans caches for Python (
- Disk Analysis:
- Integrates with
ncduto visualize and clean disk space.
- Integrates with
- Safety First:
- Interactive prompts for every action (unless
--forceis used). - Checks for binary existence before running commands.
- Interactive prompts for every action (unless
Installation
From Source (Poetry)
- Clone the repository.
- Install dependencies:
poetry install - Run the tool:
poetry run archclean --help
Usage
ArchClean uses a command-based interface. The default command full runs the entire cleaning wizard.
# Run the full interactive wizard
archclean full
# Run only system maintenance
archclean system-clean
# Run only home directory cleaning
archclean home-clean
# Run only language cache cleaning
archclean lang-clean
# Run disk analysis (ncdu)
archclean analyze
Options
--force: Skip confirmation prompts. Note thatsudowill still ask for a password if required.archclean full --force
Requirements
- Python 3.13+ (for now as it actually doesn't require exactly 3.13+)
- Arch Linux (or derivative)
pacmanncdu(optional, for analysis)
Disclaimer
This tool deletes files. While it aims to be safe by targeting known cache directories and asking for confirmation, always have backups. The authors are not responsible for any data loss.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file archclean-0.1.12.tar.gz.
File metadata
- Download URL: archclean-0.1.12.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.11 Linux/6.18.2-arch2-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a57c0f32d1d884415a400f8e93a891b543a3374bf303745ac0c36402ab6c5ab2
|
|
| MD5 |
9467aa32c41edd45ac2215e478acbf95
|
|
| BLAKE2b-256 |
d29d3d02121593feed8ba83c8b43e946a1c9bda1cf23e09214750fbe431c053d
|
File details
Details for the file archclean-0.1.12-py3-none-any.whl.
File metadata
- Download URL: archclean-0.1.12-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.11 Linux/6.18.2-arch2-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d08bdf9b5f7c778472c1533f87efbd70652296a845927f8ea1c95833e2e4a6a
|
|
| MD5 |
d5a1c1311626ff4b399c2fb72cbaa974
|
|
| BLAKE2b-256 |
0b8e3674522d20cb3e20cf471e14ef7818a9899b808dc787d324cdd8f6e5214e
|