...and it just got weirder...
$ sudo pacman -R yay
checking dependencies...
Package (1) Old Version Net Change
yay 10.2.2-1 0.00 MiB
:: Do you want to remove these packages? [Y/n]
:: Processing package changes...
(1/1) removing yay [########################################################################] 100%
So, problem solved, right?$ cd yay
yay $ makepkg -si
==> WARNING: A package has already been built, installing existing package...
==> Installing package yay with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...
Package (1) New Version Net Change
yay 10.2.2-1 7.80 MiB
Total Installed Size: 7.80 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [########################################################################] 100%
(1/1) checking package integrity [########################################################################] 100%
(1/1) loading package files [########################################################################] 100%
(1/1) checking for file conflicts [########################################################################] 100%
error: failed to commit transaction (conflicting files)
yay: /usr/bin/yay exists in filesystem
yay: /usr/share/bash-completion/completions/yay exists in filesystem
yay: /usr/share/fish/vendor_completions.d/yay.fish exists in filesystem
yay: /usr/share/locale/en/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/es/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/eu/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/fr_FR/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/ja/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/pl_PL/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/pt/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/pt_BR/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/ru_RU/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/zh_CN/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/man/man8/yay.8.gz exists in filesystem
yay: /usr/share/zsh/site-functions/_yay exists in filesystem
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).
$
Supposedly it removed it, but then, it's still there... lolwut?
So, I just manually deleted every one of them...
$ sudo rm /usr/bin/yay
$ sudo rm /usr/share/bash-completion/completions/yay
$ sudo rm /usr/share/fish/vendor_completions.d/yay.fish
$ sudo rm /usr/share/locale/en/LC_MESSAGES/yay.mo
$ sudo rm /usr/share/locale/es/LC_MESSAGES/yay.mo
$ sudo rm /usr/share/locale/eu/LC_MESSAGES/yay.mo
$ sudo rm /usr/share/locale/fr_FR/LC_MESSAGES/yay.mo
$ sudo rm /usr/share/locale/ja/LC_MESSAGES/yay.mo
$ sudo rm /usr/share/locale/pl_PL/LC_MESSAGES/yay.mo
$ sudo rm /usr/share/locale/pt/LC_MESSAGES/yay.mo
$ sudo rm /usr/share/locale/pt_BR/LC_MESSAGES/yay.mo
$ sudo rm /usr/share/locale/ru_RU/LC_MESSAGES/yay.mo
$ sudo rm /usr/share/locale/zh_CN/LC_MESSAGES/yay.mo
$ sudo rm /usr/share/man/man8/yay.8.gz
$ sudo rm /usr/share/zsh/site-functions/_yay
I'll try reinstalling it again...
It should be noted that yay has updated itself many times... This isn't a new install... You can see it's the most recent version. It updated itself with no issues, just like every other time for the past year...
I know you mentioned not using -i, I'm working up to that...