#is there any RPM for the APX?
10 messages · Page 1 of 1 (latest)
Not any Official to my knowledge
If this can be scripted into a shell script, I could turn it into an RPM. I might be able to do both things, but I haven't yet been able to complete the manual install.
I think it's possible, I actually we have one. I made it into a shell script and took everything from our newest blog (https://vanillaos.org/2023/07/05/vanilla-os-orchid-devlog.html) and if we are making one into rpm we can add dnf install git and dnf install curl to be sure it's there everything is needed.
I am working on the script here: https://github.com/GabsEdits/apx-2.0-installer
The Script itself from the blog:
#!/bin/bash
WORK_DIR="YOUR_WORK_DIR" # <- edit this path
mkdir -p "$WORK_DIR"
cd "$WORK_DIR"
curl -LO https://github.com/89luca89/distrobox/archive/refs/tags/1.5.0.2.tar.gz
tar -xzf 1.5.0.2.tar.gz
curl -LO https://github.com/Vanilla-OS/apx/releases/download/continuous/apx.tar.gz
tar -xzf apx.tar.gz
mv apx "$HOME/.local/bin/apx2"
chmod +x "$HOME/.local/bin/apx2"
mkdir -p "$HOME/.config/apx"
echo '{
"apxPath": "'"$HOME/.local/share/apx/"'",
"distroboxpath": "'"$WORK_DIR/distrobox-1.5.0.2/distrobox"'",
"storageDriver": "btrfs"
}' > "$HOME/.config/apx/apx.json"
git clone https://github.com/Vanilla-OS/vanilla-apx-configs.git "$WORK_DIR/vanilla-apx-configs"
mv "$WORK_DIR/vanilla-apx-configs/stacks" "$HOME/.local/share/apx/"
mv "$WORK_DIR/vanilla-apx-configs/package-managers" "$HOME/.local/share/apx/"
echo "Installation completed. You can now use Apx v2 by running 'apx2'."
apx2 --version
When you are building the RPM spec file, you can specify the dependencies. Also... asking for a user specified working directory might be more easily replaced with a hard coded directory under ~/.local/ or something. It would also be good to make each step more idempotent in case it has an error and you need to run it again. I'll take a look when I get the chance.
I did that in https://github.com/GabsEdits/apx-2.0-installer
Does this script still work?:
~ ❯❯❯ apx --dnf install steam
Error: unknown command "steam" for "apx"
Run 'apx --help' for usage.
I managed to install apx using the script, but I have no idea how to install apps, it gives an error
This is ApxV1 syntax.
ApxV2 is very different.
First:
apx subsystems new
then
apx yoursubsystemname install ...