Is there a way to see what packages pacman/yay last tried to install?

In case your system crashes mid-update and breaks, is there a way to check this to see which packages you have to replace?

I’ve had this occur twice now (pretty sure both times had something to do with the nvidia driver) and fixed it with this.
pacman -S --overwrite "*" $(pacman -Qqn)

But I would quite prefer actually not having to reinstall every package on my system like this if I can help it.

Yes, look in /var/log/pacman.log

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.