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.
Requirements
- Python 3.13+ (for now as it actually doesn't require exactly 3.13+)
- Arch Linux (or derivative)
pacmanncdu(optional, for analysis)
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
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.
Metadata
Release files for archclean 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| archclean-0.1.13.tar.gz | 10.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| archclean-0.1.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.3 kB
Release files / archclean-0.1.13.tar.gz
| Download URL | archclean-0.1.13.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
597414d0e30b07d672ed0f9718f11c0fe4e7d22bf1ea696362067bab895cfa54
|
|
BLAKE2b-256 checksum How to use checksums |
39fe4ef03a98e1ae07c975115a6dba2b76e7fb33664c3f334dd6cbd004340370
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.11 Linux/6.18.2-arch2-1
|
Release files / archclean-0.1.13-py3-none-any.whl
| Download URL | archclean-0.1.13-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d73fd45f4810a42337a783f08ca920f4f96857636b15f66051bb6b6f10f95d17
|
|
BLAKE2b-256 checksum How to use checksums |
cfc120fb7fb95df33d29557f900cfe334a9106e1f3680a5363f96f810c2c3113
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.11 Linux/6.18.2-arch2-1
|
Security for archclean 0.1.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.