Re: Prioritising AUR packages over pacman repo packages (Universe)
Reply #4 –
Searching about online came up with this suggestion courtesy of the Endeavour OS forums:
https://forum.endeavouros.com/t/how-to-prioritise-aur-over-chaotic-aur/15177/11
"I’ve got my normal pacman.conf with chaotic enabled, and a separate pacman-normal.conf with chaotic disabled.
Then I use the following script via an alias:
sudo pacman -Syu
yay -Syu --devel --config /etc/pacman-normal.conf
This means that in general usage I can still search chaotic-aur and aur for packages. Also it updates from chaotic-aur first so if the build is the same in aur but it’s prebuilt in chaotic aur then you won’t need to build it from aur."
Haven't tried it but it looks a promising workaround, perhaps there might still be some situations it wouldn't help but it could do the trick. I think the pacman.conf for pacman that has universe enabled should probably also "ignore" brave-bin for this to work for you.
Why not give the packages like this a different name in the universe repo to the AUR? If it was called brave-universe or something it wouldn't conflict. I don't know what all the implications of that would be though, perhaps there is some reason for the current scheme. brave-bin is an AUR name though, it doesn't make sense in a binary repo where everything is a -bin.