I am new to Manjaro and Linux and was lately trying to install yay as a pacman wrapper in order to install non core repository packages.
Now I ran into a problem, namely that makepkg -si requires at least pacman 6.1. However, pacman fails to install/update itself. Below I entered the terminal messages:
cd yay
~/yay/master makepkg -si
==> Making package: yay 12.3.5-1
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: pacman>6.1
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
-> pacman>6.1
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
Thanks for your help in advance and have a nice day!
Why are you installing yay that way when it is available in the Manjaro repositories? All you need to do to install yay is run via the CLI pamac install yay, or you can install it via the Pamac GUI.
I just installed it on my system:
pamac install yay
Preparing...
Synchronizing package databases...
Refreshing extra.db...
Refreshing AUR...
Choose optional dependencies for yay:
1: doas: privilege elevation *[not required as I have sudo installed]*
Enter a selection (default=none):
Resolving dependencies...
Checking inter-conflicts...
To install (1):
yay 12.3.0-1 extra 3.2 MB
Total download size: 3.2 MB
Total installed size: 9.8 MB
Apply transaction ? [y/N] y
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Scott (scotty)
Password:
==== AUTHENTICATION COMPLETE ====
Download of yay (12.3.0-1) started
Download of yay (12.3.0-1) finished
Checking keyring... [1/1]
Checking integrity... [1/1]
Loading packages files... [1/1]
Checking file conflicts... [1/1]
Checking available disk space... [1/1]
Installing yay (12.3.0-1)... [1/1]
Transaction successfully finished.
Manjaro Stable has yay - with ‘stable’ you’re a week or so behind, so building new things will fail sometimes.
It’s not a problem, per se… just like with any other distribution not on the cutting edge, you have to wait for stuff to filter through if you want bleeding edge.
I stopped using Pamac for AUR to be honest. yay is better, it just works, when with Pamac I had too much issues, always a problem to build some packages, or issues with the AUR database…
Pamac is still good, but for me because of the issues I encountered multiple time over the years, I switched to yay to manage my AUR packages, but I actually still use Pamac to generally manage package and search and get information about dependencies of AUR packages, when needed. I don’t know the current state right now as I personally don’t use it to install AUR packages since long time now, maybe it can work good for some people.
But anyway, as everyone repeated, yay is in the repositories, just install it.
It does, but I prefer yay… after a flirt with paru and the recent delay in getting pacman through, similar to OP’s issue with manually installing yay instead of getting it from the respositories - yay just works and has nice features.