Build from source
How to build rqlite from source
Prebuilt binaries are available for Linux, macOS, and Microsoft Windows. rqlite can also be built for many target CPUs, including x86, AMD, MIPS, RISC, PowerPC, and ARM. You can find prebuilt binaries on the rqlite GitHub releases page.
The quickest way to install rqlite on Linux is the install script, which downloads the latest release for your architecture and installs it:
curl -fsSL https://rqlite.io/install.sh | sh
By default, this installs into /usr/local/bin. Two environment variables let you control it:
| Variable | Description | Default |
|---|---|---|
RQLITE_VERSION |
The version to install, for example v10.6.4 |
the latest release |
INSTALL_DIR |
The directory to install the binaries into | /usr/local/bin |
RQLITE_VERSION=v10.6.4 INSTALL_DIR=$HOME/bin sh -c "$(curl -fsSL https://rqlite.io/install.sh)"
docker run -p 4001:4001 rqlite/rqlite
Check out the rqlite Docker page for more details on running rqlite nodes via Docker.
docker pull ghcr.io/rqlite/rqlite
Chainguard provides security-hardened rqlite container images, including a FIPS variant for environments with strict security and compliance requirements.
These images are maintained independently by Chainguard and require access to its container registry. The rqlite project is not involved in building them.
brew install rqlite
You can download the Windows release on the GitHub releases page. Alternatively, the latest top-of-tree build is also available for download from AppVeyor.
An rqlite release includes two key binaries:
rqlited: the rqlite server.rqlite: a command-line tool for interacting with rqlite.Depending on the packaging process, a simple benchmarking tool, rqbench, may also be included.
How to build rqlite from source