On 9/10/24 7:32 PM, Moabeat wrote:
Hi all,
today the update to pacman 7.0.0-r3 was installed on my machine through the core-testing repository. I am usually using the AUR helper yay for any kind of updates. After the update, yay didn't start anymore, as the library version of libalpm increased to 15 and yay was still looking for 14. A manual rebuild of yay easily fixed this.
However, I am wondering if there is any way how to make such an update smoother, so that yay would be rebuilt in the same step after pacman was updated and avoid the necessity for a manual rebuild?
You need a custom post-transaction hook that will rebuild and install yay. After pacman may be too early. It is safer to do it after full OS upgrade. I am too lazy to automate it, I just usually do: cd ~/aur/yay git pull makepkg -si ... where ~/aur/yay is a git clone from AUR. Regards, Łukasz