MMDB CLI Installation 🧰
MMDB CLI is a command line tool that ships as a single binary file. You can download the binary file from the GitHub releases page and install it on your system by following the instructions below.
Supported Platforms
Platform | Architecture | Supported |
---|---|---|
Linux | amd64 | ✅ |
Linux | arm64 | ✅ |
macOS | amd64 | ✅ |
macOS | arm64 (Apple Silicon) | ✅ |
Windows | amd64 | ✅ |
Windows | arm64 | ✅ |
Note: If your platform is not listed above, you can build the MMDB CLI from the source code. Please refer to the Building from Source section for more information.
Note: We mainly test MMDB CLI on Linux (amd64) and macOS (arm64). If you encounter any issues on other platforms, please let us know by creating an issue on our GitHub repository.
We also provide deb
and rpm
packages for Linux distributions that support these package formats. You can download the package from the GitHub releases page
Package Format | Architecture | Supported |
---|---|---|
deb | amd64 | ✅ |
deb | arm64 | ✅ |
rpm | amd64 | ✅ |
rpm | arm64 | ✅ |
apk | amd64 | ✅ |
apk | arm64 | ✅ |
Installation Instructions ( Linux Package Manager )
We currently provide deb
, rpm
, and apk
packages for Linux distributions that support these package formats. You can download the package from the GitHub releases page and install it on your system by following the instructions below.
Debian and Ubuntu
- Check the latest MMDB CLI
rpm
package 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
.deb
package usingcurl
orwget
curl -LO "https://github.com/InfraZ/mmdb-cli/releases/download/v${MMDB_CLI_VERSION}/mmdb-cli_${MMDB_CLI_VERSION}_linux_${ARCH}.deb"
- Install
.deb
package 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)
- Check the latest MMDB CLI
rpm
package 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//')
- Install
.rpm
package usingyum
ordnf
dnf install "https://github.com/InfraZ/mmdb-cli/releases/download/v${MMDB_CLI_VERSION}/mmdb-cli_${MMDB_CLI_VERSION}_linux_amd64.rpm"
- Verify the installation by running the following command.
mmdb-cli version
Alpine Linux
- Check the latest MMDB CLI
apk
package 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//')
- Download the
.apk
package usingcurl
orwget
curl -LO "https://github.com/InfraZ/mmdb-cli/releases/download/v${MMDB_CLI_VERSION}/mmdb-cli_${MMDB_CLI_VERSION}_linux_amd64.apk"
- Install
.apk
package usingapk
apk add --allow-untrusted ./mmdb-cli_${MMDB_CLI_VERSION}_linux_amd64.apk
- Verify the installation by running the following command.
mmdb-cli version
Installation Instructions ( Pre-built Binary )
Linux and macOS
- Choose the version and platform you want to install from the GitHub releases page.
export MMDB_CLI_VERSION=0.5.0
export MMDB_CLI_PLATFORM=linux_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.
sudo mv mmdb-cli /usr/local/bin/
- Verify the installation by running the following command.
mmdb-cli --version