(See also installing Distroboxm, which is included in SteamOS 3.5 and newer: https://distrobox.it/ )
(See also installing Nix package manager: https://determinate.systems/posts/nix-on-the-steam-deck )
You can install Homebrew (a package manager for macOS and Linux) without disabling the read-only partition with sudo steamos-readonly disable
.
The package manager can be used alongside Flatpaks. Some software is only available on Flathub, and some software is only available on Homebrew.
- Switch to desktop mode (hold power button until a menu appears, then select "Switch to desktop mode")
- Click the logo at the bottom left, go to System, then go to Konsole
- Set a password (needed for sudo access):
passwd
- Install Homebrew using the steps here: https://brew.sh/
Don't install any additional libraries frompacman
orbrew
yet. Also, do not append to.bash_profile
yet, otherwise it will break Steam. - Add to
.bash_profile
with a check to make sure it is running in Konsole:echo 'if [ $(basename $(printf "%s" "$(ps -p $(ps -p $$ -o ppid=) -o cmd=)" | cut --delimiter " " --fields 1)) = konsole ] ; then '$'\n''eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"'$'\n''fi'$'\n' >> ~/.bash_profile
- In Konsole's menu bar, go to Settings -> Manage Profile
- Press "New"
- Check "Default Profile"
- Set "Command" to
/bin/bash -l
(that is a lowercasel
, not a number1
) - Click OK twice
- Add brew environment to current context:
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
- Install glibc (the important thing is headers).
This is needed in order to compile software.
brew install glibc
- Install GCC:
brew install gcc
That worked. Skipping Step 12 (not installing glibc). podman is now installed. I'll have to circle back to checking on this brew-podman and distrobox.
When
brew install podman
one of the hangups was related to the qemu dep of gtk3. I was like, WTH ?!? no linux distro I'm aware of has a GUI library as dep for qemu -- but apparently brew does -- how very unnecessary. My baseline brew install is about 700MB with justmc
installed. Afterpodman
nearly 4.8GB. It installs all of X11, wayland and metric ton of unnecessary garbage.So I'm afraid if I pull down qemu.rb (and podman.rb) remove the
depends_on gtk3
, that when Ibrew install podman
it will pull the distro qemu.rb (not my tailored qemu.rb without gtk3) and install the missing gtk3.After my endevours for podman wrap up, I might put in a RFE to remove qemu.rb
depends_on gtk3
. That's like saying, if you need bash, you need to also install xterm, konsole, gnome-terminal, etc. Thedepends_on gtk3
should not be for basic qemu but separate installable qemu front-ends/utils.worse case scenarios:
Man, Open Source is a lot of work. ;-D