Pile Of Blocks

How to upgrade Nethermind on Ubuntu - 2023

June 06, 2023 | 1 Minute Read

Nethermind is an execution client for Ethereum. As an integral part of the Ethereum ecosystem, it aids in the operation of nodes on the Ethereum network, offering a broad array of features and utilities. Notably, Nethermind supports both Mainnet and various testnets, is compatible with Windows, Linux, and macOS, and provides advanced features such as fast synchronization and extensive plugins. It is widely recognized for its efficient, reliable, and secure delivery of services, making it a popular choice among Ethereum enthusiasts and developers. In this article, we’ll guide you through the process of upgrading Nethermind.

Verifying Installation

If you initially installed Nethermind by downloading the binary, you can easily upgrade by simply downloading the latest binary and replacing the old one.

However, if you followed the official documentation, you might have installed Nethermind using the apt command:

sudo apt-get install nethermind

Upgrading via apt

Performing an upgrade via apt is straightforward and can be achieved with the following command:

sudo apt-get install --only-upgrade nethermind

Important Considerations

When performing an upgrade, it’s essential to note that if your initial installation utilized the default configuration, the chain data database will be reset when you run apt-get install again.

To avoid losing your data, you can either transfer the entire chain data to another folder, or you can change the --baseDbPath to another location. For more information, please refer to the configuration documentation.