MMDB CLI Installation
MMDB CLI ships as a single static binary. You can install it with Homebrew on macOS, Linux package managers, pre-built archives from GitHub Releases, or build from source.
Supported Platforms
Pre-built binaries are published for the following OS and architecture combinations:
| Platform | Architecture | Supported |
|---|---|---|
| Linux | amd64 | ✅ |
| Linux | arm64 | ✅ |
| macOS | amd64 | ✅ |
| macOS | arm64 (Apple Silicon) | ✅ |
| FreeBSD | amd64 | ✅ |
| FreeBSD | arm64 | ✅ |
| Windows | amd64 | ✅ |
| Windows | arm64 | ✅ |
Note: If your platform is not listed above, you can build MMDB CLI from source.
Note: We mainly test MMDB CLI on Linux (amd64) and macOS (arm64). If you encounter issues on other platforms, please open an issue.
We also publish deb, rpm, apk, and Arch Linux packages. Download them from GitHub Releases.
| Package Format | Architecture | Supported |
|---|---|---|
| deb | amd64 | ✅ |
| deb | arm64 | ✅ |
| rpm | amd64 | ✅ |
| rpm | arm64 | ✅ |
| apk | amd64 | ✅ |
| apk | arm64 | ✅ |
| Arch Linux | amd64 | ✅ |
| Arch Linux | arm64 | ✅ |
Installation (macOS — Homebrew)
On macOS, install MMDB CLI from the InfraZ Homebrew tap:
brew tap infraz/tap
brew install infraz/tap/mmdb-cli
Verify:
mmdb-cli version
The Homebrew cask is not Apple-notarized. If macOS blocks the binary, remove the quarantine attribute:
xattr -dr com.apple.quarantine "$(which mmdb-cli)"
Installation Instructions (Linux Package Manager)
Debian and Ubuntu
- Resolve the latest version and architecture:
export MMDB_CLI_VERSION=$(curl -s https://api.github.com/repos/InfraZ/mmdb-cli/releases/latest | grep tag_name | cut -d '"' -f 4 | sed 's/v//')
export ARCH=$(dpkg --print-architecture)
- Download the
.debpackage usingcurlorwget
curl -LO "https://github.com/InfraZ/mmdb-cli/releases/download/v${MMDB_CLI_VERSION}/mmdb-cli_${MMDB_CLI_VERSION}_linux_${ARCH}.deb"
- Install
.debpackage usingapt
apt install ./mmdb-cli_${MMDB_CLI_VERSION}_linux_${ARCH}.deb
- Verify the installation by running the following command.
mmdb-cli version
RH-based (RHEL, Fedora, CentOS, Rocky Linux, AlmaLinux)
- Resolve the latest version:
export MMDB_CLI_VERSION=$(curl -s https://api.github.com/repos/InfraZ/mmdb-cli/releases/latest | grep tag_name | cut -d '"' -f 4 | sed 's/v//')
- Install the
.rpmpackage usingyumordnf
ARCH=$(uname -m); [ "$ARCH" = "x86_64" ] && ARCH=amd64; [ "$ARCH" = "aarch64" ] && ARCH=arm64
dnf install "https://github.com/InfraZ/mmdb-cli/releases/download/v${MMDB_CLI_VERSION}/mmdb-cli_${MMDB_CLI_VERSION}_linux_${ARCH}.rpm"
- Verify the installation by running the following command.
mmdb-cli version
Alpine Linux
- Resolve the latest version:
export MMDB_CLI_VERSION=$(curl -s https://api.github.com/repos/InfraZ/mmdb-cli/releases/latest | grep tag_name | cut -d '"' -f 4 | sed 's/v//')
- Download the
.apkpackage usingcurlorwget
ARCH=$(uname -m); [ "$ARCH" = "x86_64" ] && ARCH=amd64; [ "$ARCH" = "aarch64" ] && ARCH=arm64
curl -LO "https://github.com/InfraZ/mmdb-cli/releases/download/v${MMDB_CLI_VERSION}/mmdb-cli_${MMDB_CLI_VERSION}_linux_${ARCH}.apk"
- Install
.apkpackage usingapk
apk add --allow-untrusted ./mmdb-cli_${MMDB_CLI_VERSION}_linux_${ARCH}.apk
- Verify the installation by running the following command.
mmdb-cli version
Installation Instructions (Pre-built Binary)
Linux and macOS
- Pick a version and platform from GitHub Releases:
export MMDB_CLI_VERSION=0.5.0
export MMDB_CLI_PLATFORM=linux_amd64 # e.g. darwin_arm64, freebsd_amd64
- Download the MMDB CLI tarball using
curl,wget, or any other tool.
curl -LO "https://github.com/InfraZ/mmdb-cli/releases/download/v${MMDB_CLI_VERSION}/mmdb-cli_${MMDB_CLI_VERSION}_${MMDB_CLI_PLATFORM}.tar.gz"
- Extract the downloaded tarball.
tar -xzf mmdb-cli_${MMDB_CLI_VERSION}_${MMDB_CLI_PLATFORM}.tar.gz
- Move the extracted binary file to a directory in your
$PATH.
mv mmdb-cli /usr/local/bin/
- Verify the installation by running the following command.
mmdb-cli version
FreeBSD
Use the same tarball flow as Linux/macOS with a FreeBSD platform label, for example freebsd_amd64 or freebsd_arm64.
Windows
- Download
mmdb-cli_<version>_windows_<arch>.zipfrom GitHub Releases. - Extract
mmdb-cli.exeto a directory on yourPATH. - Open a new terminal and run:
mmdb-cli version