Files
xrpl-dev-portal/content/tutorials/manage-the-rippled-server/installation/update-rippled-automatically-on-linux.md
2019-07-09 18:29:28 -07:00

1.5 KiB

Update Automatically on Linux

On Linux, you can set up rippled to automatically upgrade to the latest version with a one-time cron configuration. Ripple recommends enabling automatic updates if possible.

These instructions assume you have already installed rippled from the yum repository (CentOS/RedHat) or using apt (Ubuntu/Debian).

Warning: As of version 1.3.0, the install and upgrade process has changed. Automatic updates will not upgrade to rippled 1.3.0. If you have rippled v1.2.4 or lower installed, follow the rippled 1.3.0 migration instructions first. After performing the migration, automatic updates should work again.

To set up automatic updates, complete the following steps:

  1. Check that /opt/ripple/etc/update-rippled-cron exists. If it does not, update manually (CentOS/Red Hat or Ubuntu/Debian).

  2. Create a symlink in your cron.d folder to the /opt/ripple/etc/update-rippled-cron config file:

     $ sudo ln -s /opt/ripple/etc/update-rippled-cron /etc/cron.d/
    

    This cron configuration runs a script to update installed rippled package within an hour of each new release. To reduce the chance of outages from all servers updating simultaneously, the script delays the update for a random number of minutes, up to 59.