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.

Requirements

  • Python 3.13+ (for now as it actually doesn't require exactly 3.13+)
  • Arch Linux (or derivative)
  • pacman
  • ncdu (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.
  • 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
    

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.13.tar.gz (10.3 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.13-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: archclean-0.1.13.tar.gz
  • Upload date:
  • Size: 10.3 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.13.tar.gz
Algorithm Hash digest
SHA256 597414d0e30b07d672ed0f9718f11c0fe4e7d22bf1ea696362067bab895cfa54
MD5 43d11a9cb59ae505d3b5bff8d3e83f94
BLAKE2b-256 39fe4ef03a98e1ae07c975115a6dba2b76e7fb33664c3f334dd6cbd004340370

See more details on using hashes here.

File details

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

File metadata

  • Download URL: archclean-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 d73fd45f4810a42337a783f08ca920f4f96857636b15f66051bb6b6f10f95d17
MD5 2d63aeaa70bed7cd383a8a0f213b77bb
BLAKE2b-256 cfc120fb7fb95df33d29557f900cfe334a9106e1f3680a5363f96f810c2c3113

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