Skip to content

Instantly share code, notes, and snippets.

@attilaolah
Created October 1, 2022 10:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save attilaolah/251f5dfad7da28e3dd9e64492847bb90 to your computer and use it in GitHub Desktop.
Arch System Cleanup
# Clean up the package manager cache:
yay --sync --clean
# Clean up the Nix store:
nix-store --gc
# Clean up system journals, except the past two days:
journalctl --vacuum-time=2d
# DANGER ZONE:
# Remove orphaned packages:
pacman -Qtdq | sudo pacman -Rns -
# Remove Flatpak unused packages:
flatpak uninstall --unused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment