1
0
shell-scripts/pac-cleanup
2023-06-04 16:32:00 +03:00

12 lines
240 B
Bash
Executable File

#!/bin/bash
[[ `whoami` != "root" ]] && echo "Must be root." && exit 1
echo -e "\e[1;36mCleaning package caches\e[0m"
# All packages
paccache -rk3 -c /var/cache/pacman/pkg
# Uninstalled packages
paccache -ruk1 -c /var/cache/pacman/pkg