This repository provides the Snap package for the ASIMOV Platform
- A Linux distribution with Snap support.
- Snapd installed and enabled.
wget(for downloading the.snapfile).
The Snap package will be downloaded into the asimov directory inside the home folder (~/asimov).
# Create and navigate to the download directory
mkdir -p ~/asimov && cd ~/asimov
# Detect architecture
ARCH="$(uname -m)"
# Detect libc (musl or glibc)
if ldd --version 2>&1 | grep -qi musl; then
LIBC="musl"
else
LIBC="gnu"
fi
# Map to the correct snap name
case "$ARCH-$LIBC" in
x86_64-gnu)
SNAP_NAME="asimov-x86-gnu.snap"
;;
x86_64-musl)
SNAP_NAME="asimov-x86-musl.snap"
;;
aarch64-gnu)
SNAP_NAME="asimov-arm-gnu.snap"
;;
aarch64-musl)
SNAP_NAME="asimov-arm-musl.snap"
;;
*)
echo "❌ Unsupported architecture or libc: $ARCH-$LIBC"
exit 1
;;
esac
# Download the snap file from the latest release
wget "https://github.com/asimov-platform/asimov-packaging/releases/latest/download/$SNAP_NAME" -O asimov-cli.snapOnce the download is complete, install the Snap package locally in classic mode using:
sudo snap install --dangerous --classic ~/asimov/asimov-cli.snapTo update the ASIMOV CLI Snap package to the latest version, follow these steps:
-
Download the latest
.snappackageRun the same commands from the Download section to re-download the newest version of the Snap package. This will overwrite the previously downloaded file (
~/asimov/asimov-cli.snap). -
Reinstall the Snap package
First, remove the existing version, then install the freshly downloaded one:
sudo snap remove asimov sudo snap install --dangerous --classic ~/asimov/asimov-cli.snap
After installation, you can run the CLI with:
asimov --helpTo check the installed version:
asimov --versionIf the Snap does not run as expected, check the logs:
snap logs asimov-cliEnsure that Snap is installed and enabled on your system:
snap versionFor additional help, refer to the Snapcraft documentation.