Install tools on Linux with a package manager
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
Configure APT, DNF, or YUM on your Linux host to use Aerospike’s public package repository once, then install only the command-line tools you need. Tool package versions on the repository are independent of Aerospike Database server releases.
Applies to
- Product: Aerospike tools distributed as individual Linux packages on the public Aerospike artifact repository
- Package managers: APT (Debian, Ubuntu), DNF or YUM (RHEL, Rocky Linux, AlmaLinux, Amazon Linux 2023)
- Architectures:
amd64/x86_64,arm64/aarch64 - Not covered here: Legacy tools tarball installs — see Install tools on Linux from an archive
For supported distributions, see Aerospike tools requirements and Platform support.
Prerequisites
- Root access or permission to run
sudo - A supported Linux distribution for your architecture
- Outbound HTTPS access to
https://artifact.aerospike.io - On Debian/Ubuntu:
wget,gpg, andca-certificates(install withsudo apt-get install -y wget gpg ca-certificatesif missing)
Import the GPG key
Aerospike signs packages with one public GPG key. Import it once before adding a repository:
wget -qO - https://artifact.aerospike.io/artifactory/api/security/keypair/aerospike/public \ | sudo gpg --dearmor -o /usr/share/keyrings/aerospike.gpgAerospike uses the same key in two forms: APT references the dearmored binary file via signed-by=, while DNF and YUM reference the ASCII-armored key URL directly via gpgkey=.
Configure the repository
Base: https://artifact.aerospike.io/artifactory/deb
-
Set distribution and architecture variables:
Terminal window . /etc/os-releaseCODENAME=$VERSION_CODENAMEARCH=$(dpkg --print-architecture)KEYRING=/usr/share/keyrings/aerospike.gpgREPO_URL="https://artifact.aerospike.io/artifactory/deb" -
Add the Aerospike repository:
Terminal window cat <<EOF | sudo tee /etc/apt/sources.list.d/aerospike.listdeb [arch=$ARCH signed-by=$KEYRING] $REPO_URL $CODENAME mainEOF -
Refresh package indexes:
Terminal window sudo apt-get update
Base: https://artifact.aerospike.io/artifactory/rpm
-
Detect the distribution token and architecture:
Terminal window DIST=$(if [ -f /etc/os-release ]; then. /etc/os-releasecase "$ID" inrhel|centos|almalinux|rocky) echo "el${VERSION_ID%%.*}" ;;amzn) [ "$VERSION_ID" = "2023" ] && echo "amzn2023" || echo "unsupported" ;;*) echo "unsupported" ;;esacelseecho "unsupported"fi)ARCH=$(uname -m)If
DISTisunsupported, your OS is not configured for the public RPM layout. Install tools on Linux from an archive instead, or contact Aerospike support. -
Create the repository file:
Terminal window sudo tee /etc/yum.repos.d/aerospike.repo <<EOF[aerospike-${DIST}-stable]name=Aerospike RPM Repo STABLE for ${DIST} (\$basearch)baseurl=https://artifact.aerospike.io/artifactory/rpm/${DIST}/$ARCH/enabled=1gpgcheck=1gpgkey=https://artifact.aerospike.io/artifactory/api/security/keypair/aerospike/publicEOF
Install individual tools
Install one package per tool. Package names follow the aerospike-<tool> pattern (for example, aerospike-asadm). Useful when you want to select a minimum set of tools, as opposed to the prepackaged bundle provided by the aerospike-tools package.
| Tool | DEB / RPM package name | Documentation |
|---|---|---|
Aerospike Admin (asadm), Aerospike Info (asinfo) | aerospike-asadm | asadm |
Aerospike Quick Look (aql) | aerospike-aql | AQL |
Aerospike Benchmark (asbench) | aerospike-asbench | asbench |
Aerospike Configuration (asconfig) | aerospike-asconfig | asconfig |
Legacy Aerospike Backup & Restore (asbackup, asrestore) | aerospike-asbackup | asbackup |
Example: install asadm and asinfo, both of which ship in aerospike-asadm:
sudo apt-get install aerospike-asadmExample: install asadm and asinfo, both of which ship in aerospike-asadm:
sudo dnf install aerospike-asadmOn images that ship microdnf instead of dnf, replace dnf with microdnf.
Install the tools package
You can install the aerospike-tools bundle of tools containing asadm, asinfo, aql, asconfig, asbench, asbackup/asrestore.
sudo apt-get install aerospike-toolssudo dnf install aerospike-toolsOn images that ship microdnf instead of dnf, replace dnf with microdnf.
List available versions
sudo apt-get updateapt list -a aerospike-asadmReplace aerospike-asadm with any package name from the table above.
dnf --showduplicates list aerospike-asadmOr on minimal images:
microdnf repoquery aerospike-asadmInstall a specific version
sudo apt-get install aerospike-asadm=5.0.3-5ubuntu24.04Use the exact version string from apt list -a. DEB revisions embed the distribution, so the string differs between Ubuntu and Debian releases.
sudo dnf install aerospike-asadm-5.0.3-5.el9.x86_64Including the architecture suffix avoids ambiguity on multi-arch hosts.
Install the latest version in a version lineage
Individual tool packages use a three-component SemVer version, followed by a package iteration and a distribution token: 5.0.3-5ubuntu24.04 on DEB and 5.0.3-5.el9 on RPM. Each tool versions independently of the others and of the aerospike-tools bundle version.
To install the newest package matching a prefix (for example, all 5.0.x builds), set LINEAGE and select the highest match with sort -V.
LINEAGE=5.0PKG=aerospike-asadm
VERSION=$(apt list -a "$PKG" 2>/dev/null \ | awk -v pkg="$PKG" '$1 ~ "^" pkg "/" {print $2}' | grep "^${LINEAGE}\\." | sort -V | tail -1)echo "Latest version in ${LINEAGE}.x lineage: $VERSION"sudo apt-get install "${PKG}=${VERSION}"LINEAGE=5.0PKG=aerospike-asadm
VERSION=$(dnf repoquery --queryformat '%{version}-%{release}' "$PKG" 2>/dev/null |grep "^${LINEAGE}\." |sort -V |tail -n 1)echo "Latest version in ${LINEAGE}.x lineage: $VERSION"sudo dnf install "${PKG}-${VERSION}"Verify
-
Confirm the package is registered:
Terminal window dpkg-query -l 'aerospike-asadm'Terminal window rpm -qa | grep aerospike-asadm -
Confirm the binary runs (example for
asadm):Terminal window asadm --versionIf security is enabled on your cluster, provide valid credentials when connecting to a live cluster.
Troubleshoot
| Symptom | Cause | Fix |
|---|---|---|
unsupported from the RPM DIST script | OS not in the public RPM layout | Confirm platform support; use tarball install if needed |
| GPG or signature errors | Key not imported or repo misconfigured | Re-run the GPG import and repository steps |
Package not found after apt-get update | Wrong CODENAME or architecture | Check VERSION_CODENAME in /etc/os-release and run dpkg --print-architecture; match supported OS list |
dnf list fails on minimal images | Image uses microdnf | Use microdnf repoquery and microdnf install |
Next steps
- Install tools on Linux from an archive — legacy tarball install
- Install tools on macOS —
.pkginstallers - Deploying Aerospike Tools with Docker
- Aerospike tools overview