Archlinux Maintenance
Date:
[12th Sep 2025]
Install paccache with # pacman -S pacman-contrib. # paccache -r to clean the package manager's cache.
List orphan packages with $ pacman -Qdtq. Remove orphan packages with # pacman -Qtdq | sudo pacman -Rns -.
Delete cache with $ rm -rf ~/.cache/*
Find out how much space is being used by our logs with $ journalctl --disk-usage. Remove logs limiting them by time with # journalctl --vacuum-time=7d.
Thanks linkylink to the dude's page for this useful info.