Recovering from a pacman interrupted upgrade
pacman -Qk 2>/dev/null | grep -v ' 0 missing files' | cut -d: -f1 |
while read -r package; do
sudo pacman -Qkk 1>/dev/null 2>&1 | grep checksum
sudo pacman -S "$package" --overwrite "*" --noconfirm
done