install
This document contains instructions for installing rippled. The APT package manager is common on Debian-based Linux distributions like Ubuntu, while the YUM package manager is common on Red Hat-based Linux distributions like CentOS. Installing from source is an option for all platforms, and the only supported option for installing custom builds.
From source
From a source build, you can install rippled and libxrpl using CMake's
--install
mode:
cmake --install . --prefix /opt/local
The default prefix is typically /usr/local
on Linux and macOS and
C:/Program Files/rippled
on Windows.
With the APT package manager
-
Update repositories:
sudo apt update -y
-
Install utilities:
sudo apt install -y apt-transport-https ca-certificates wget gnupg
-
Add Ripple's package-signing GPG key to your list of trusted keys:
sudo mkdir /usr/local/share/keyrings/ wget -q -O - "https://repos.ripple.com/repos/api/gpg/key/public" | gpg --dearmor > ripple-key.gpg sudo mv ripple-key.gpg /usr/local/share/keyrings
-
Check the fingerprint of the newly-added key:
gpg /usr/local/share/keyrings/ripple-key.gpg
The output should include an entry for Ripple such as the following:
In particular, make sure that the fingerprint matches. (In the above example, the fingerprint is on the third line, starting with
C001
.) -
Add the appropriate Ripple repository for your operating system version:
echo "deb [signed-by=/usr/local/share/keyrings/ripple-key.gpg] https://repos.ripple.com/repos/rippled-deb focal stable" |
sudo tee -a /etc/apt/sources.list.d/ripple.listThe above example is appropriate for Ubuntu 20.04 Focal Fossa. For other operating systems, replace the word
focal
with one of the following:jammy
for Ubuntu 22.04 Jammy Jellyfishbionic
for Ubuntu 18.04 Bionic Beaverbullseye
for Debian 11 Bullseyebuster
for Debian 10 Buster
If you want access to development or pre-release versions of
rippled
, use one of the following instead ofstable
:unstable
- Pre-release builds (release
branch)nightly
- Experimental/development builds (develop
branch)
Warning: Unstable and nightly builds may be broken at any time. Do not use these builds for production servers.
-
Fetch the Ripple repository.
sudo apt -y update
-
Install the
rippled
software package:sudo apt -y install rippled
-
Check the status of the
rippled
service:systemctl status rippled.service
The
rippled
service should start automatically. If not, you can start it manually:sudo systemctl start rippled.service
-
Optional: allow
rippled
to bind to privileged ports.This allows you to serve incoming API requests on port 80 or 443. (If you want to do so, you must also update the config file's port settings.)
sudo setcap 'cap_net_bind_service=+ep' /opt/ripple/bin/rippled
With the YUM package manager
-
Install the Ripple RPM repository:
Choose the appropriate RPM repository for the stability of releases you want:
stable
for the latest production release (master
branch)unstable
for pre-release builds (release
branch)nightly
for experimental/development builds (develop
branch)
-
Fetch the latest repo updates:
sudo yum -y update
-
Install the new
rippled
package:sudo yum install -y rippled
-
Configure the
rippled
service to start on boot:sudo systemctl enable rippled.service
-
Start the
rippled
service:sudo systemctl start rippled.service