Master Node Update Guide
A Guide to update the master nodes
Note that this update guide is for individuals running their Master Node as a Service on linux. If you are using any
screen's you will need kill the screens and go back to the Master Node Full Guide and follow it once more.It is highly recommended running your Master Node as a Service due to the ease of updating.
Once we have logged in to our VPS we should update our package lists, the below command downloads the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies. It will do this for all repositories and PPAs.
sudo apt update
You will notice a bunch of package lists were downloaded, once this is complete run the below command to fetch new versions of any packages we currently have installed on the system.
sudo apt upgrade
You will be prompted to authorise the use of disk space, type
yand enter to authorise.
If you are prompted during the upgrade that a new version of any file is available then click the up and down arrows until you are hovering over
install the package maintainer’s versionand click enter.
Alright, good to go. Our server is now up to date. On to the fun part!
To download the Linux binaries use the following command:
<link>is the download link of the latest linux release. To find the link go to https://github.com/beldex-coin/beldex/releases/latest, right click the latest linux release and click
Copy Link Location.
Your command should look something like:
To unzip the downloaded zip file run the following command (changing 3.1.3 to whatever version you downloaded above):
You will see something like this:
Note that they are unzipped into the
beldex-linux-x64-v3.1.3folder; you can check they are unzipped by running the following to change into the folder and then listing the files:
We now want to replace our "symlink" to the new extracted
beldex-linux-x64-v3.1.3folder. If you are unfamiliar with what the "symlink" was doing previously have a look at the Master Node Full Guide where you first set it up.
Otherwise, run the following command.:
ln -snf <folder_name> beldex
<folder_name>is the new folder we created when unziping the release. In this case if we were to update to
v3.0.2the commands we would use would be:
ln -snf beldex-linux-x64-v3.1.3 beldex
This replaces our virtual
beldexfolder that pointed to an old folder to the
beldex-linux-x64-v3.1.3folder we created.
At this point it is wise to restart your system with the following command:
Once the system has restarted it will reboot the new version of
Log back in to your VPS and double check the new version of beldexd is running smoothly by running the following command:
sudo journalctl -u beldexd.service -af
NOTE: If you’re nervous about trusting the binaries or the download link, you should build it from source yourself. Instructions for that can be found in the README of https://github.com/beldex-project/beldex
Excellent! You have now updated your Master Node.