# Update Automatically on Linux

On Linux, you can set up `xrpld` to automatically upgrade to the latest version with a one-time `cron` configuration.

These instructions assume you have already installed `xrpld` from a package on [Red Hat Enterprise Linux](/es-es/docs/infrastructure/installation/install-xrpld-on-rhel), [Ubuntu Linux, or Debian Linux](/es-es/docs/infrastructure/installation/install-xrpld-on-ubuntu).

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 ([Red Hat](/es-es/docs/infrastructure/installation/update-xrpld-manually-on-rhel) or [Ubuntu/Debian](/es-es/docs/infrastructure/installation/update-xrpld-manually-on-ubuntu)).
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 configuration runs a script to update the installed `xrpld` package within an hour of each new release. To avoid network instability from too many servers updating at the same time, this script does not automatically restart the server, so it continues to run the old version until it restarts.
3. **Whenever a new release comes out,** you must manually restart the `xrpld` service to switch to the updated software.

```
sudo systemctl restart xrpld.service
```


The `xrpld` packages published at `packages.xrplf.org` do not include `update-rippled-cron` or its script. If the file exists on your server, it came from an older package; remove the symlink from `/etc/cron.d/` and update manually ([Red Hat](/es-es/docs/infrastructure/installation/update-xrpld-manually-on-rhel) or [Ubuntu/Debian](/es-es/docs/infrastructure/installation/update-xrpld-manually-on-ubuntu)) so that upgrades come from `packages.xrplf.org`.

## See Also

- **Concepts:**
  - [The `xrpld` Server](/es-es/docs/concepts/networks-and-servers)
  - [Consensus](/es-es/docs/concepts/consensus-protocol)
- **Tutorials:**
  - [Capacity Planning](/es-es/docs/infrastructure/installation/capacity-planning)
  - [Troubleshoot xrpld](/es-es/docs/infrastructure/troubleshooting)
- **References:**
  - [xrpld API Reference](/es-es/docs/references/http-websocket-apis)
    - [`xrpld` Commandline Usage](/es-es/docs/infrastructure/commandline-usage)
    - [server_info method](/docs/references/http-websocket-apis/public-api-methods/server-info-methods/server_info)