Last active
August 13, 2024 21:46
-
-
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 hidden or 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 - | |
# See list of packages sorted by package size and dependency size | |
paru -S pacgraph | |
pacgraph -c > packages_size.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
paccache requires installing
extra/pacman-contrib