soscmd/soscmd-cache-pacman

8 lines
184 B
Text
Raw Permalink Normal View History

2023-06-03 11:28:50 +02:00
#!/bin/bash
if [ ! -f "/usr/bin/pacman-key" ]; then
echo ":: Error: You are not running a Arch Linux based distro."
exit 1
fi
pacman -Scc --noconfirm
echo ":: Purged pacman caches."