Overwrite packages
Sometimes an interrupted packages upgrading process may break several programs/libraries, and you may want to overwrite them.
If pacman still works on your sysstem, all you have to do is:
- Reboot into an Arch Linux Live USB
 - Mount your disk as described here
 - Chroot into /mnt
 - Run the following command:
 
sudo pacman -S $(pacman -Qnq) --overwrite "*"
- Reboot into your system
 
The command at step 4 creates a list of all installed packages, and then reinstall them, overwriting the previous versions.