Skip to main content

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.
  • Home Directory:
    • Clean thumbnail cache.
    • Empty Trash.
  • Language Ecosystems:
    • Detects and cleans caches for Python (pip), Node.js (npm, yarn), and Go.
  • Disk Analysis:
    • Integrates with ncdu to visualize and clean disk space.
  • Safety First:
    • Interactive prompts for every action (unless --force is used).
    • Checks for binary existence before running commands.

Installation

From Source (Poetry)

  1. Clone the repository.
  2. Install dependencies:
    poetry install
    
  3. 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 that sudo will 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)
  • pacman
  • ncdu (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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

archclean-0.1.12.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

archclean-0.1.12-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

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

Hashes for archclean-0.1.12.tar.gz
Algorithm Hash digest
SHA256 a57c0f32d1d884415a400f8e93a891b543a3374bf303745ac0c36402ab6c5ab2
MD5 9467aa32c41edd45ac2215e478acbf95
BLAKE2b-256 d29d3d02121593feed8ba83c8b43e946a1c9bda1cf23e09214750fbe431c053d

See more details on using hashes here.

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

Hashes for archclean-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 8d08bdf9b5f7c778472c1533f87efbd70652296a845927f8ea1c95833e2e4a6a
MD5 d5a1c1311626ff4b399c2fb72cbaa974
BLAKE2b-256 0b8e3674522d20cb3e20cf471e14ef7818a9899b808dc787d324cdd8f6e5214e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page