Last active
January 3, 2025 19:40
-
-
Save anthonybaldwin/e263026789dc84fc23c59329341ddaf8 to your computer and use it in GitHub Desktop.
yay/pacman on Steam Deck
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# By Ratel (https://github.com/cd-ratel/Steam-deck-Pentest) | |
# | |
# This script unlocks the typical Arch Linux environment (pacman/yay). | |
# Enjoy! | |
if [ $EUID -eq 0 ]; then | |
echo "The script cannot be run as root. Exiting..." | |
exit 1 | |
fi | |
# Disable SteamOS read-only mode (if applicable) | |
sudo steamos-readonly disable | |
# Install the Arch Linux keyring package to ensure proper key management | |
sudo pacman -S archlinux-keyring | |
# Initialize the pacman keyring | |
sudo pacman-key --init | |
# Populate the Arch Linux and holo keyrings with trusted keys | |
sudo pacman-key --populate archlinux | |
sudo pacman-key --populate holo | |
# Install git and base-devel (development tools) if not already installed | |
sudo pacman -S --needed git base-devel | |
# Update the pacman database and upgrade the system to the latest packages | |
sudo pacman -Syu --noconfirm | |
# Clone the yay AUR helper repository | |
cd | |
git clone https://aur.archlinux.org/yay-bin.git | |
# Navigate to the yay-bin directory | |
cd yay-bin | |
# Check out a specific commit for yay-bin | |
#git checkout cb857e898d7081a60cf8742d26247fd6a3c5443c | |
# https://github.com/Jguer/yay/issues/2098#issuecomment-2518847645 | |
# https://aur.archlinux.org/cgit/aur.git/commit/?h=yay-bin&id=96f90180a3cf72673b1769c23e2c74edb0293a9f | |
git checkout 96f90180a3cf72673b1769c23e2c74edb0293a9f | |
# Build and install yay from the cloned repository | |
yes | makepkg -si | |
# Return to the home directory | |
cd | |
# Print a completion message | |
echo "Environment setup complete." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Enable SteamOS read-only mode (if applicable) | |
sudo steamos-readonly enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment