extra powerful cleanup

This commit is contained in:
Nemo 2021-01-02 15:03:25 +05:30
parent aeb61d93dd
commit 6aa0e4eb6a
1 changed files with 9 additions and 1 deletions

View File

@ -9,7 +9,15 @@ PERSONAL_ROOT="/home/nemo/projects/personal"
find $PERSONAL_ROOT -maxdepth 2 -type d -iname .git | xargs -I{} bash -c "cd {}/.. && karn update"
# Cleanup yay-cache
find /home/nemo/.cache/yay -iregex '.*\.\(bz2\|tar\|zip\|deb\|xz\|gz\)$' -delete
find /home/nemo/.cache/yay -iregex '.*\.\(bz2\|tar\|zip\|deb\|xz\|part\|rpm\|gz\)$' -delete
cd /home/nemo/projects/personal/signal-desktop-beta-bin
rm *.deb *.tar
cd ../koreader-appimage
rm *.AppImage *.tar
# Remove orphan packages
sudo pacman -Rns $(pacman -Qtdq)