Last active
June 22, 2024 22:00
-
-
Save kaubu/29678db41a33d4f4a49300130ab7a971 to your computer and use it in GitHub Desktop.
Cleans cache to get more story space on Arch-based Linux distributions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Remove old Haskell versions | |
ghcup gc --cache | |
# Clean pip cache | |
pip cache purge | |
# Remove packages cache | |
sudo pacman -Scc | |
yay -Scc | |
sudo paccache -r -f -k 0 | |
# Remove orphaned packages | |
pacman -Qtdq | sudo pacman -Rns - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
paccache requires installing
extra/pacman-contrib