Update MoonBeam
1 min readFeb 26, 2021
This article is described on how you can update MoonBeam software
First of all, we need to stop our node, to prevent unexpected behavior:
# systemctl stop moonbeam
Then go to the environment of the ‘moonbeam’ user:
# su -s /bin/bash moonbeam
Go to the project directory:
# cd ~/moonbeam
Let’s check out the latest release:
# git checkout tags/$(git tag | tail -1)
Go to the master branch:
$ git checkout master
Download all changed files from the master:
# git pull
Rebuild binary files:
# cargo build --release
Check the current version of the “moonbeam” tool:
$ ./target/release/moonbeam --version
Make sure that you are using the latest version:
moonbeam 0.6.1–1cfd4a4-x86_64-linux-gnu
Exit from the user environment:
$ exit
Run “moonbeam” service:
# systemctl start moonbeam
Check the status of the service:
# systemctl status moonbeam
Make sure that status is active(running):
# systemctl status moonbeam
● moonbeam.service - "Moonbase Alpha systemd service"
Loaded: loaded (/etc/systemd/system/moonbeam.service; disabled; vendor preset: enabled)
Active: active (running) since Fri 2021-02-26 14:32:06 CET; 4s ago
Main PID: 155386 (moonbeam)
Tasks: 55 (limit: 18720)
Memory: 227.1M
CGroup: /system.slice/moonbeam.service