2022-07-24 20:13:47 +00:00
# Upgrade / downgrade
2020-10-26 17:12:37 +00:00
2023-04-11 15:42:35 +00:00
Make sure you stay on the lookout for any critical updates to Nimbus.
The best way to do so is through the **announcements** channel on our [discord ](https://discord.com/invite/XRxWahP ).
The release page can be found [here ](https://github.com/status-im/nimbus-eth2/releases/ ).
2020-10-26 17:12:37 +00:00
2022-07-22 19:47:24 +00:00
!!! note
If your beacon node is already running, you'll need to restart it for the changes to take effect.
2021-05-26 08:43:06 +00:00
2023-03-02 16:22:07 +00:00
To update to the latest version, either download the binary or compile the beacon node release (see below), then restart the service.
2021-05-26 08:43:06 +00:00
2022-07-22 19:47:24 +00:00
!!! tip
To check which version of Nimbus you're currently running, run `build/nimbus_beacon_node --version`
2021-06-25 09:52:06 +00:00
2023-03-02 16:22:07 +00:00
## Upgrade to the latest version
2021-05-26 08:43:06 +00:00
2023-03-02 16:22:07 +00:00
=== "Manual installation"
Open the [Nimbus release page ](https://github.com/status-im/nimbus-eth2/releases/latest ) and download the file that corresponds to your operation system and machine.
2022-06-19 07:24:01 +00:00
2023-03-02 16:22:07 +00:00
Once downloaded, unpack the binaries in the same folder as your current version, overwriting the existing files.
2021-05-26 08:43:06 +00:00
2023-03-02 16:22:07 +00:00
```sh
wget < insert download link here >
tar -xzf nimbus-eth2_Linux_arm64v8*.tar.gz --strip-components 1 -C nimbus-eth2
rm nimbus-eth2_Linux_arm64v8*.tar.gz
```
2021-05-26 08:43:06 +00:00
2023-03-02 16:22:07 +00:00
=== "Debian / Ubuntu"
2022-06-19 07:24:01 +00:00
2023-03-02 16:22:07 +00:00
Update Nimbus via the package manager as usual
2021-05-26 08:43:06 +00:00
2023-03-02 16:22:07 +00:00
```sh
sudo apt-get update & & sudo apt-get upgrade
```
2020-10-26 17:12:37 +00:00
2023-03-02 16:22:07 +00:00
=== "Build from source"
2020-10-26 17:12:37 +00:00
2023-03-02 16:22:07 +00:00
Upgrading Nimbus when built from source is similar to the installation process.
2020-12-01 22:39:53 +00:00
2023-03-02 16:22:07 +00:00
Run:
2020-12-01 22:39:53 +00:00
2023-03-02 16:22:07 +00:00
```sh
# Download the updated source code
git pull & & make update
2021-11-15 19:07:30 +00:00
2023-12-13 15:11:25 +00:00
# Build the newly downloaded version
2023-03-02 16:22:07 +00:00
make -j4 nimbus_beacon_node
```
!!! tip
2023-04-11 15:42:35 +00:00
If you want to minimize downtime, you can build Nimbus while the node is running!
2023-03-02 16:22:07 +00:00
Complete the upgrade by restarting the node!
2020-12-01 22:39:53 +00:00
2021-06-21 20:50:26 +00:00
## Urgency guidelines
2022-06-17 15:28:13 +00:00
2023-07-05 13:43:43 +00:00
Nimbus releases are marked with the following tags:
2021-06-21 20:50:26 +00:00
2023-04-11 15:42:35 +00:00
- `low-urgency` : update at your own convenience, sometime within our normal update cycle of two weeks
- `medium-urgency` : may contain an important stability fix, it is better to update sooner rather than later
- `high-urgency` : update as soon as you can, this is a critical update required for Nimbus to function correctly
2021-06-21 20:50:26 +00:00
2020-10-26 17:12:37 +00:00
2021-11-15 19:07:30 +00:00
## Install a specific version
2023-04-11 15:42:35 +00:00
Occasionally, you may need to either upgrade or downgrade to a specific version of Nimbus.
2021-11-15 19:07:30 +00:00
2023-03-02 16:22:07 +00:00
Nimbus can safely be downgraded to any version targeting the current hard fork of the chain, unless otherwise noted among the release notes.
2021-11-15 19:07:30 +00:00
2023-03-02 16:22:07 +00:00
=== "Manual installation"
2021-11-15 19:07:30 +00:00
2023-03-02 16:22:07 +00:00
Download the desired version from [Github ](https://github.com/status-im/nimbus-eth2/releases/ ) and replace the binaries, similar to upgrading.
2021-11-15 19:07:30 +00:00
2023-03-02 16:22:07 +00:00
=== "Debian / Ubuntu"
2021-11-15 19:07:30 +00:00
2023-03-02 16:22:07 +00:00
Use the package manager to install a specific version:
```sh
sudo apt-get install nimbus-beacon-node=23.2.0
```
=== "Build from source"
2021-11-15 19:07:30 +00:00
2023-03-02 16:22:07 +00:00
To pull a specific version of Nimbus (e.g. `v22.9.1` ), run:
2022-07-21 18:19:47 +00:00
2023-03-02 16:22:07 +00:00
```sh
# Switch source code to the desired version
git checkout v22.9.1 & & make update
2021-11-15 19:07:30 +00:00
2023-03-02 16:22:07 +00:00
# Run the build command as usual
make -j4 nimbus_beacon_node
```
2021-11-15 19:07:30 +00:00
2023-03-02 16:22:07 +00:00
When later you want to go back to the stable release:
2021-11-15 19:07:30 +00:00
2023-03-02 16:22:07 +00:00
```sh
# Switch source code to the stable version
git checkout stable & & make update
2021-11-15 19:07:30 +00:00
2023-03-02 16:22:07 +00:00
# Run the build command as usual
make -j4 nimbus_beacon_node
```
Now, restart your node.