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.11.tar.gz (7.4 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.11-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file archclean-0.1.11.tar.gz.

File metadata

  • Download URL: archclean-0.1.11.tar.gz
  • Upload date:
  • Size: 7.4 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.11.tar.gz
Algorithm Hash digest
SHA256 0b507562d9706ec77ce6c96814216cfa70395c124b7c83ee316e31d4e8dc4e33
MD5 6cf2cceaecdddbfdc217462d5ed319c1
BLAKE2b-256 4c24c9201279a268b6aa77075287a3182eea9f0d91a7bf3e5a89b367471c91da

See more details on using hashes here.

File details

Details for the file archclean-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: archclean-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 2cf64ac789dc9b98bf8959aec86f9819d5ac3cc3cddff5abe61b21dbe628faee
MD5 aab94b53234c718630ebf5c29befa8c2
BLAKE2b-256 10e68f7962deb8bf3da736480ae7f99c56a50c014f60b4bde430ef99842ce108

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