Download and verify
Get the latest CLI on github.com/monero-project/monero/releases (example for a Raspberry Pi 4B)
BASH
sudo wget -P /monero/sources/ https://downloads.getmonero.org/cli/monero-linux-armv8-v0.18.5.0.tar.bz2
Import main dev PGP key
BASH
curl https://raw.githubusercontent.com/monero-project/monero/master/utils/gpg_keys/binaryfate.asc | gpg --import
BASH
gpg --edit-key '81AC591FE9C4B65C5806AFC3F0AF4D462A0BDF92'
In PGP command line, run trust, choose 4, then save
Verification 1
Check hashes authenticity
BASH
curl https://www.getmonero.org/downloads/hashes.txt | gpg --verify
That command should return
gpg: Good signature from "binaryFate" [unknown]
Verification 2
Check downloaded source hash
BASH
file_name=/monero/sources/monero-linux-armv8-v0.18.5.0.tar.bz2
file_hash=`sha256sum $file_name | cut -c 1-64`
curl https://www.getmonero.org/downloads/hashes.txt > /tmp/reference-hashes.txt
gpg --verify /tmp/reference-hashes.txt
grep $file_hash /tmp/reference-hashes.txt
The last line hash should match the one on github.com/monero-project/monero/releases
d8f19b947ce46d468615bb7331962d4ca732e79b1ac6c5128fa509df3f6cc487 monero-linux-armv8-v0.18.5.0.tar.bz2
Update
If both verification pass, stop monerod
BASH
sudo systemctl stop monerod
Extract
BASH
sudo tar -xjvf /monero/sources/monero-linux-armv8-v0.18.5.0.tar.bz2 -C /usr/local/bin/
Change user rights
BASH
sudo chown -R moneronode:moneronode /usr/local/bin/monero*
Edit monero config file
BASH
sudo nano /etc/systemd/system/monerod.service
/etc/systemd/system/monerod.service
[Service]
Type=simple
ExecStart=/usr/local/bin/monero-aarch64-linux-gnu-v0.18.5.0/monerod --config-file /monero/monerod.conf --non-interactive
Reload systemd and monerod service
BASH
sudo systemctl daemon-reload
sudo systemctl enable --now monerod
Check status
BASH
sudo systemctl status monerod
And log
BASH
tail -n40 /var/log/monero/monero.log