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

Arch Linux

8327 readers
14 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

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 9 points 3 days ago* (last edited 3 days 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 days ago* (last edited 3 days 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] 3 points 3 days ago

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