Skip to content

Upgrade

Stop the service

sudo systemctl stop moonbeam.service

Remove the old binary file

rm /var/lib/moonbeam-data/moonbeam

Download the latest version of the binary file

Get the latest version of Moonbeam from the Moonbeam GitHub Release page

wget https://github.com/PureStake/moonbeam/releases/download/<NEW VERSION TAG HERE>/moonbeam

Move the binary to the data directory

mv ./moonbeam /var/lib/moonbeam-data
cd /var/lib/moonbeam-data
chmod +x moonbeam
chown moonbeam_service moonbeam
cd $HOME

Register and start the service

sudo systemctl enable moonbeam.service
sudo systemctl start moonbeam.service
sudo systemctl status moonbeam.service

Check the logs

sudo journalctl -u moonbeam.service -f -o cat