Installing with RPM
Installing on Fedora and Centos are described below.
Install using the RPM Package
To install to CentOS, open a terminal and run the following commands.
curl -O https://releases.algorand.com/rpm/rpm_algorand.pub sudo rpmkeys --import rpm_algorand.pub sudo yum install yum-utils sudo yum-config-manager --add-repo https://releases.algorand.com/rpm/stable/algorand.repo sudo yum install algorand
To install to Fedora open a terminal and run the following commands.
dnf install -y 'dnf-command(config-manager)' dnf config-manager --add-repo=https://releases.algorand.com/rpm/stable/algorand.repo dnf install algorand
These commands will install and configure
algod as a service and place the algorand binaries in the /usr/bin directory. These binaries will be in the path so you can run
goal commands from anywhere. Additionally, every node has a data directory, in this case, it will be set to
This install defaults to the Algorand MainNet network. See switching networks if you wish to install DevNet or TestNet and note that the genesis files are stored under
Staring the Node
A systemd service config is available in this package so you can use it to start the node
sudo systemctl start algorand
The algod process will start and you can check the node's status by running the following command.
goal node status -d /var/lib/algorand
Because algod is running as a service, you should use
systemctl instead of
goal to start, stop, and restart it.
Updating the Node
CentOS should automatically update. With Fedora installs the node currently has to be manually updated or through using a Cron job.
sudo dnf upgrade algorand
sudo dnf upgrade -y algorand in a cron script
Syncing with the Network
Follow the steps here to get more information on how the node will sync with the network.