this post was submitted on 15 Mar 2025
11 points (92.3% liked)

Arch Linux

8440 readers
1 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS
 

I have failed my reading comprehension.

I can't find an answer in: https://wiki.archlinux.org/title/Arch_User_Repository or in search engine AI slop

sudo pacman -Syu cbonsai command can't find a package

top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 12 points 2 weeks ago

I recommend that before using an AUR helper, you should familiarize yourself with the process by cloning, reading the files, compiling, and installing manually. Then after you think you are good you can install a helper. I use yay.

Also, sometimes pacman itself gets updated and your AUR helper doesn't work anymore. When that happens you have to update or recompile your helper manually. If you are not familiar with the process it can be difficult. I'm talking from experience, one day after an update my helper didn't work and I didn't remember how to do all the process manually, and I had to re read the wiki again.

[–] [email protected] 9 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

I think you have the wrong mental model of how the AUR works. You don't enable it and then it works with pacman (which is what it sounds like you are thinking). Instead, it's a repository of packages that require a different method of installation. This is described in section 2 of the wiki page you linked:

  1. Acquire the build files, including the PKGBUILD and possibly other required files, like systemd units and patches (often not the actual code).
  2. Verify that the PKGBUILD and accompanying files are not malicious or untrustworthy.
  3. Run makepkg in the directory where the files are saved. This will download the code, compile it, and package it.
  4. Run pacman -U package_file to install the package onto your system.

More detailed instructions are on that page.

However, if you want a pacman-like experience, you can install an AUR helper. You'll still need to install the AUR helper via the steps above, though.

[–] [email protected] 3 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

I was thinking of something similar to apt non-free repositories as I have used debian based distros so far.
Thank you.

[–] [email protected] 4 points 3 weeks ago

Yup, that makes sense. I hope you get it working!

[–] [email protected] 8 points 2 weeks ago

The AUR is essentially a non-curated repository of scripts named PKGBUILD which perform some actions and build a package pacman can install. The expected way to use it is to download the PKGBUILD file to a folder, read it to ensure it is not malicious and run makepkg which will generate a package you can install with pacman.

That being said most people use a helper which does all of that automatically. My recommendation is to install yay or paru using the process I mentioned above to understand it, and from then on use that program to install new stuff. Both of them are drop-in replacements for pacman so you can use them for all package installation.

[–] [email protected] 8 points 3 weeks ago* (last edited 3 weeks ago)

The AUR requires an AUR helper like paru or yay to interact with it that way. Otherwise you can clone the repo using git and make the package yourself.

[–] [email protected] 5 points 3 weeks ago (1 children)

The AUR is a source-based. You can't install directly from it. The packages must first be built before pacman can install it.

[–] [email protected] 1 points 3 weeks ago
[–] [email protected] 2 points 2 weeks ago

You might be interested in chaotic-aur. It's a repo you can add that has a subset of pre-built aur packages that you can install like normal.

[–] [email protected] 1 points 2 weeks ago

If you need to know, you do need one of the following to help you:

  • AUR helper (Yay or Paru)
  • By hand (Git + Makepkg)
  • Chaotic AUR (which is pre-built AUR packages)