I was away for more than a week. When I came back I turned the desktop PC on and ran yay. It was about 99% finished when the computer unexpectedly restarted. Either a hard drive problem or a power issue, but regardless of why, it messed it up a bit.
I found that multiple programs were broken, for example Google Chrome, and others installed from AUR. They had broken installations, no icon, and wouldn’t start.
I couldn’t reinstall them, because it refused to overwrite existing files. For example, hundreds of lines like this:
error: failed to commit transaction (conflicting files)
google-chrome: /opt/google/chrome/CHROME_VERSION_EXTRA exists in filesystem
google-chrome: /opt/google/chrome/MEIPreload/manifest.json exists in filesystem
google-chrome: /opt/google/chrome/MEIPreload/preloaded_data.pb exists in filesystem
google-chrome: /opt/google/chrome/PrivacySandboxAttestationsPreloaded/manifest.json exists in filesystem
In one instance, I resolved it by manually removing all mentioned files and directories, and then it allowed me to install the program.
I then discovered the --overwrite option, which allowed me to re-install such programs.
My problem now is I don’t know what might be broken, because there were hundreds of updates being installed. I suspect it might only be the last things that were installed from AUR that failed to complete, but is there a way to identify what was previously updated? I could force a reinstall of those things, but I don’t know if there’s a way to identify was updated in a previous run of yay.