So, for example, let’s supose that I have a package named foo and if I run packman -Si foo on manjaro I get that it’s on version 0.0.1.
But let’s also supose that arch had this foo package updated to version 0.0.2 and looking at the arch website I could see that it was in that newer version since a few hours ago, but the manjaro mirrors are yet to update it.
So I know that I can build foo myself manually instead of waiting for the mirrors.
My question here is can I, via a package manager (better if it could be pacman or yay), update foo or any other package that aren’t yet updated in manjaro without needing to wait to the manjaro mirrors to fetch this new version.
I saw some ppl on reddit saying that adding the Arch linux mirrors into manjaro isn’t a good idea (although I’m not exactly clear of why). But if not this way, do I have any other way to achieve what I want?
Arch intends you to have your packages always 100% up to date. Manjaro holds things back a little, especially on Stable. If you mix these two methodologies, you’ll get mismatches and things will break. Say Package A relies on Package B. Package B makes an update changing how it works, so Package A has to update as well to change its behavior to work with the new Package B. If you only update one of them, you get big problems.
If you want to be completely up to date with Arch, switch to Unstable like @dmt posted.
For Discord specifically, to ignore an update until it has arrived on Manjaro (usually a couple hours after Arch), edit ~/.config/discord/settings.json and add the following line:
Even if installing directly from Arch is not supported and have to be avoided, I don’t see any reason to not “fast track” this particular package. You can manually install it with this: sudo pacman -U https://archive.archlinux.org/packages/d/discord/discord-0.0.27-1-x86_64.pkg.tar.zst
(of course, this is for this particular version)