Steam Deck's Desktop Mode allows us to tweak with the whole system, including system packages. But first, we need to be able to run
which you can do by following this guide to set a password for your Steam Deck user.
Yes, but it's not the recommended way to do it. Steam Deck's mode, while powerful, has some quirks that make this approach not the best one.
Steam OS will automatically wipe the system partition after every update. They do this to make sure that your console never breaks with new versions of the operating system.
Flatpak is the best way to install packages on the Steam Deck, using the Discover app. But there are some things that don't work with Flatpak, hence the need for installing system packages on the Steam Deck.
NOTE: This will get undone after each system update! I recommend you to create a script to do all of this for you and run it after every update.
- The first thing we need to do is make the Steam Deck's system partition writable. And there's an official command for that:
sudo steamos-readonly disable
- Initialize pacman's keyring:
sudo pacman-key --init
- Populate pacman's keyring with the default Arch Linux keys:
sudo pacman-key --populate archlinux
- Update & upgrade the system packages:
sudo pacman -Syu
- Done! You can now install ArchLinux packages on the Steam Deck.