Skip to content

fix(installer): separate AUR packages from official packages on Arch Linux - #177

Open
mgiuh wants to merge 1 commit into
Gentleman-Programming:mainfrom
mgiuh:fix/aur-package-installation
Open

fix(installer): separate AUR packages from official packages on Arch Linux#177
mgiuh wants to merge 1 commit into
Gentleman-Programming:mainfrom
mgiuh:fix/aur-package-installation

Conversation

@mgiuh

@mgiuh mgiuh commented Jul 16, 2026

Copy link
Copy Markdown

Closes #176

Summary

  • Add AUR helper detection (yay/paru) in detect.go
  • Split package lists into official (pacman) and AUR (yay/paru) in installer.go
  • Install AUR packages without sudo (helpers handle privileges internally)

Changes

File Change
installer/internal/system/detect.go Added AUR helper detection (yay/paru)
installer/internal/tui/installer.go Separated official vs AUR packages, added conditional installation logic

What was the problem?

The installer was trying to install AUR-only packages (carapace, zsh-theme-powerlevel10k) using sudo pacman -S, which fails because these packages dont exist in official Arch repositories.

The solution

  1. Detect if yay/paru is installed
  2. Separate packages into official (pacman) and AUR (yay/paru) lists
  3. Install AUR packages using the helper without sudo (they handle privileges internally)

…Linux

- Add AUR helper detection (yay/paru) in detect.go
- Split package lists into official (pacman) and AUR (yay/paru) in installer.go
- Install AUR packages without sudo (helpers handle privileges internally)
- Fixes Gentleman-Programming#176 where installer failed trying to install AUR-only packages via pacman
@bgreens47

Copy link
Copy Markdown

Hi mgiuh! Thank you so much for this PR. I was struggling with this specific layout on my CachyOS setup, and your fix solved the issue perfectly. I really appreciate the effort—great work!

@SoubranMx

Copy link
Copy Markdown

Thank you! It worked with me too, with Omarchy. Hopefully we can get this merged to main soon, so that others won't face the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

problem with zsh install

3 participants