You are not logged in.

#1 2024-05-04 07:17:06

aneeshdg16
Member
Registered: 2023-12-06
Posts: 33

[SOLVED] yay building everything from source

When using yay (the AUR helper) to install packages, regardless of what I say in the beginning (when it asks me if I want to build from source etc.), it always seems to me that the packages are built from source, especially from seeing the output during installation***. On the other hand pacman installs are almost always faster, and this output I'm referencing is never there. Is this intended behavior, or am I doing something wrong?

*** things like a bunch of compiler messages and warnings

Last edited by aneeshdg16 (2024-05-13 02:14:13)

Offline

#2 2024-05-04 07:27:19

aneeshdg16
Member
Registered: 2023-12-06
Posts: 33

Re: [SOLVED] yay building everything from source

I think I found an answer from someone on Reddit

https://www.reddit.com/r/linux4noobs/co … are_button

My understanding if you're pulling from the AUR using Yay. It's not just pulling from the AUR, it's pulling from GitHub or wherever the main code is stored. Then it's got to compile that code, unless you're downloading bin files. While Pacman is pulling from the main Arch Repo of already compiled software.

I'll mark the thread as solved after someone here confirms this?

Last edited by aneeshdg16 (2024-05-04 07:30:03)

Offline

#3 2024-05-04 07:42:16

Awebb
Member
Registered: 2010-05-06
Posts: 6,492

Re: [SOLVED] yay building everything from source

Yay is not a good tool to learn how Arch works. Pacman will only install packages from the repositories you specified in the pacman config, while yay will build AUR packages and install repository packages. This generally is intended behavior of yay, but yay seems to decide a lot of things on its own. I've read some recent posts, where yay tried to compile chromium from the AUR instead installing the repository package.

Do yourself a favor and try the AUR the way it's meant and then decide which AUR helper suits you best. While yay is comfortable, it introduces issues yay users are usually unequipped to fix, because the tool is so damn opaque.

1. https://wiki.archlinux.org/title/Arch_User_Repository
2. https://wiki.archlinux.org/title/Makepkg
3. https://wiki.archlinux.org/title/AUR_helpers

If you want a (temporary) quick way out of this mess, use pacman for everything from the repositories and use yay with the --aur flag, so it will only manage AUR packages (besides installing dependencies for AUR packages from the repos).

Offline

#4 2024-05-04 08:06:00

aneeshdg16
Member
Registered: 2023-12-06
Posts: 33

Re: [SOLVED] yay building everything from source

I'll follow the temporary advice you gave for right now, and when I have the time I'll learn more about the AUR through the links you sent. Thank you!!

Offline

#5 2024-05-04 08:53:00

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 12,244
Website

Re: [SOLVED] yay building everything from source

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB