Skip to content

Instantly share code, notes, and snippets.

@matheusfaustino
Created April 4, 2024 20:18
Show Gist options
  • Save matheusfaustino/dce9f23a60475ad62a73aadb0fd3d1d8 to your computer and use it in GitHub Desktop.
Save matheusfaustino/dce9f23a60475ad62a73aadb0fd3d1d8 to your computer and use it in GitHub Desktop.
Install YAY on steam deck commands
# Allow to write over file system (steam os block)
sudo steamos-readonly disable
# Ensure we have the keys updated
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --populate holo
sudo pacman -S glibc linux-api-headers
# Install git and base-devel dependencies
sudo pacman -S --needed git base-devel
# Ensure that dependencies get installed correctly (this may be not necessary in some cases)
sudo pacman -S git base-devel
# When prompted, select all options
# INSTALL FROM SOURCE
git clone https://aur.archlinux.org/yay.git
cd yay
git checkout 17f4503492f5070ebcca58743144773c89099dff # version 12.3.1 (last before pacman 6.1 requirement)
makepkg -si
# OR INSTALL FROM BINARY
# git clone https://aur.archlinux.org/yay-bin.git
# cd yay-bin
# makepkg -si
# Disable again the write over file system
sudo steamos-readonly disable
@deckOuser
Copy link

HELP
==> Starting build()...
go build -trimpath -mod=readonly -modcacherw -ldflags '-X "main.yayVersion=12.3.1" -X "main.localePath=/usr/share/locale/" -linkmode=external' -buildmode=pie -o yay
go: downloading github.com/Jguer/aur v1.2.3
go: downloading github.com/Jguer/go-alpm/v2 v2.2.1
go: downloading github.com/Jguer/votar v1.0.0
go: downloading github.com/Morganamilo/go-srcinfo v1.0.0
go: downloading github.com/deckarep/golang-set/v2 v2.6.0
go: downloading github.com/leonelquinteros/gotext v1.5.2
go: downloading github.com/pkg/errors v0.9.1
go: downloading golang.org/x/sys v0.17.0
go: downloading github.com/Morganamilo/go-pacmanconf v0.0.0-20210502114700-cff030e927a5
go: downloading golang.org/x/term v0.17.0
go: downloading github.com/adrg/strutil v0.3.1
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading github.com/itchyny/gojq v0.12.14
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/ohler55/ojg v1.21.4
go: downloading golang.org/x/text v0.14.0
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading github.com/itchyny/timefmt-go v0.1.5

github.com/Jguer/go-alpm/v2

../gopath/pkg/mod/github.com/!jguer/go-alpm/[email protected]/alpm.go:10:11: fatal error: alpm.h: No such file or directory
10 | // #include <alpm.h>
| ^~~~~~~~
compilation terminated.
make: *** [Makefile:117: yay] Error 1
==> ERROR: A failure occurred in build().
Aborting...

@matheusfaustino
Copy link
Author

@deckOuser it looks like it could be related to pacman. Try running this to see if it solves: sudo pacman -S pacman (https://www.reddit.com/r/SteamDeck/comments/12cwir4/yay_installation_fatal_error_alpmh_not_found/)

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