Skip to content
jazir555Public

About

Installs the Pamac application manager inside an Arch Distrobox on Steam OS allowing you to install applications from the Arch Repo (AUR).

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

371 Commits

Folders and files

Repository files navigation

Native Experience Features:

πŸ–₯️ Desktop Integration

  • Native App Menu: Pamac appears in your Steam Deck's application menu under "System"
  • Proper Icon & Categorization: Shows up with the correct Pamac icon and metadata
  • Launch Like Any App: Click and run - no terminal commands needed
  • Auto-cleanup: When you uninstall packages, their shortcuts are automatically removed

πŸ”„ Persistent Storage

  • Survives Updates: Your installed packages and configurations persist through SteamOS updates
  • Build Cache: Speeds up AUR package compilation by caching builds in ~/.cache/yay
  • Settings Retention: Pamac configuration and preferences are maintained

Core Functionality

  1. Immutable Filesystem Preservation βœ…

    • All package installations occur entirely within the Distrobox container
    • No modifications to the host SteamOS filesystem
    • SteamOS remains read-only and secure
  2. AUR Package Management βœ…

    • Installs Pamac with full AUR support inside container
    • GUI and CLI access to Arch Linux packages + AUR
    • yay helper pre-installed for terminal operations
  3. Automatic Setup βœ…

    • Single-script execution handles everything
    • Container creation
    • Pamac installation
    • System configuration
    • Application exporting
  4. Seamless Desktop Integration βœ…

    • Pamac appears in SteamOS application menu
    • Installed apps get automatically added to menu
    • Exporting respects SteamOS .desktop standards

Security and Safety

  • No Developer Mode Required βœ…
    Works within standard SteamOS restrictions
  • No Sudo on Host βœ…
    All privileged operations are containerized
  • No System Modifications βœ…
    Leaves SteamOS core files untouched

User Experience

  • GUI Application βœ…
    Pamac runs as native-looking desktop app
  • Menu Integration βœ…
    Newly installed apps appear alongside Steam games
  • Proactive Error Handling βœ…
    Comprehensive logging and recovery mechanisms

πŸ—οΈ Full Arch Linux Environment

  • Complete Package Access: Full Arch repos + AUR (60,000+ packages)
  • Development Tools: Complete build environment for compiling from source
  • Gaming Packages: Steam, Lutris, Wine, etc. without conflicts
  • System Tools: Advanced utilities not available in SteamOS

πŸ”§ Smart Container Features

  • Automatic Arch Updates: Keeps your Arch environment current
  • Shared Home Directory: Access to your Steam Deck files
  • Hardware Access: GPU, controllers, and other devices work normally
  • Network Integration: Shares network settings with SteamOS

How It Works Behind the Scenes:

  1. Container Creation: Creates an isolated Arch Linux environment
  2. Desktop Export: Makes Pamac appear as a native SteamOS application
  3. File Integration: Installed apps can create shortcuts on your desktop
  4. Cleanup Automation: Pacman hooks ensure removed software doesn't leave orphaned shortcuts

User Experience:

# Installation - Run once:
./SteamOS-Pamac-Installer.sh

1. Run installation script
2. Select from options in terminal via 1,2,3

# Daily usage - Just like any native app:
# 1. Open Start menu
# 2. Navigate to "System" or "All Applications" 
# 3. Click "Pamac Manager"
# 4. Install/remove software normally
# 5. Installed apps appear in your menu automatically

Why This Approach Works Perfectly:

  • SteamOS Compatibility: Doesn't break during SteamOS updates
  • Performance: Negligible overhead - apps run at native speed
  • Safety: Can't break your Steam Deck system
  • Flexibility: Full Linux software ecosystem available
  • Convenience: Works exactly like a native package manager

This gives you the best of both worlds: SteamOS's gaming-optimized stability with Arch Linux's comprehensive software availability, all while maintaining the user experience of a native package manager.

Steam-OS-Pamac

Installation

Option 1: Remote install (recommended)

bash -c "$(curl -sSL https://raw.githubusercontent.com/your-repo/Steam-OS-Pamac/main/SteamOS-Pamac-Installer.sh)"

Why not curl | bash? Piping into bash (curl ... | bash) replaces stdin with the pipe, so the script cannot read your keyboard for interactive prompts (battery warnings, destructive-reset confirmations, etc.). Using command substitution (bash -c "$(curl ...)") downloads the script first, then executes it as a string, leaving stdin connected to your terminal.

Option 2: Download and run locally

chmod +x ~/Desktop/SteamOS-Pamac-Installer.sh
./SteamOS-Pamac-Installer.sh

Process

graph LR
A[SteamOS Host] --> B[Distrobox Container]
B --> C[Arch Linux Userspace]
C --> D[Pamac Package Manager]
C --> E[AUR Packages]
D --> F[GUI Applications]
E --> F
F --> G[SteamOS Application Menu]
Loading

Security Model

This script makes deliberate security tradeoffs to provide a seamless package-manager experience on a locked-down gaming device. Understanding these tradeoffs helps you decide if the script is right for your threat model.

Isolation

  • All package operations run inside a Distrobox/Podman rootless container
  • The host SteamOS is never directly modified (except for desktop-file symlinks in ~/.local/share/applications)
  • Container storage lives in ~/.local/share/containers/, not on the root filesystem

Privilege Escalation

  • Polkit rules: On single-user devices (1 human user detected), the wheel group gets passwordless org.manjaro.pamac.* via polkit. On multi-user hosts, the rule is scoped to the installing user only.
  • Sudoers: timestamp_timeout=0 scoped to %wheel β€” sudo credentials are not cached between operations, limiting the escalation window.
  • --strict-security: Disables the SigLevel = TrustAll keyring recovery fallback and the fake systemd-run wrapper. AUR builds that rely on DynamicUser=yes will fail under strict mode, which is the correct behavior for security-sensitive hosts.

Fake systemd-run

  • The wrapper only triggers when real systemd is unavailable inside the container β€” it is never installed on the host.
  • It logs all operations to /tmp/systemd-run-fake.log for auditability.
  • Under --strict-security, the wrapper is refused entirely.

AUR Trust

  • The Chaotic-AUR, archlinuxcn, and EndeavourOS repositories are optional and gated behind --enable-extra-repos. They are disabled by default.
  • Key imports use dynamic discovery first (mirror-distributed keyring packages) before falling back to keyservers. User-configurable *_KEY_ID env vars always override hardcoded fallbacks.

What the script does NOT do

  • It does not modify SteamOS read-only partitions
  • It does not disable Secure Boot or other firmware protections
  • It does not create system-wide service accounts or daemons

Post-Upgrade Maintenance

SSH configuration (--enable-ssh-env only): Major SteamOS version upgrades (e.g. 3.x β†’ 4.x) may rewrite host-side files under /etc/ssh/. If you used --enable-ssh-env, the following may need re-creation after a major upgrade:

  • /etc/ssh/sshd_config.d/permit-user-env.conf (PermitUserEnvironment)
  • ~/.ssh/environment (host environment variables)

Re-run the script with --enable-ssh-env to re-apply these settings, or manually restore them per the in-script guidance.

Everything else persists across SteamOS updates: container data, desktop file exports, pamac configuration, and the GUI/CLI wrappers all survive normal steamOS update cycles.

Non-SteamOS Compatibility

The script works on any Linux distribution with systemd and a supported container runtime (podman or Docker). However, some features are SteamOS-specific:

Feature SteamOS Other distros
Read-only rootfs detection Automatic N/A (skipped)
subuid/subgid configuration Automatic Automatic
KDE Discover notifier suppression Automatic (KDE only) N/A (skipped)
SSH environment configuration Automatic N/A (skipped)
Desktop file export Automatic Automatic
AUR wrapper (yay/paru) Automatic Automatic
D-Bus policy configuration Automatic Automatic

On non-SteamOS systems, the script skips SteamOS-specific features (read-only rootfs handling, SSH env, Discover notifier) and focuses on container setup, desktop exports, and AUR wrapper installation. The container, pamac, and desktop integration work identically.

Verification Test

When you run the script, you'll see this final success message:

πŸŽ‰ SETUP COMPLETE! πŸŽ‰
Enhanced Pamac with AUR support is now installed and ready to use.

ACCESS METHODS:
  πŸ–₯️  Desktop Mode: Application Launcher β†’ 'Pamac Package Manager'
  πŸ› οΈ  Management: Use 'BoxBuddy' for advanced container operations

All installed applications (including those from AUR) will appear in your application menu under appropriate categories, looking and behaving like native SteamOS applications. The container provides full Arch Linux compatibility while keeping SteamOS perfectly intact.

About

Installs the Pamac application manager inside an Arch Distrobox on Steam OS allowing you to install applications from the Arch Repo (AUR).

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages