<p>Generic update procedure from v0.4.0 to v0.4.1:</p>

<ul>
<li>stop LND</li>
<li>delete macaroon files in LND directory (to prevent <a href="https://github.com/lightningnetwork/lnd/issues/921" rel="nofollow noreferrer">this issue</a>)</li>
<li>install new version exactly like before (as documented above)</li>
<li>start LND </li>
<li>unlock wallet with <code>lncli unlock</code> to create new macaroon files</li>
</ul>

<p>In case you are following my <a href="https://github.com/Stadicus/guides/blob/master/raspibolt/README.md" rel="nofollow noreferrer">RaspiBolt guide</a>, you might want to copy the macaroon file to the admin home directory again: <code>sudo cp /home/bitcoin/.lnd/admin.macaroon /home/admin/.lnd/</code> (see more details <a href="https://github.com/Stadicus/guides/issues/57" rel="nofollow noreferrer">here</a>)</p>

CC BY-SA 4.0
2018-05-03T19:21:23.607Z
2018-05-03T19:21:23.607Z
Stadicus
<p>I'm running a lightning node on a Raspberry Pi. I'm still learning about the technology and linux as well. But I'm not sure how to securely update my node to the new LND version 0.4.1 and I'd like some directions.</p>

<p>I already downloaded LND binaries and checked the keys.</p>

<pre><code>$ wget https://github.com/lightningnetwork/lnd/releases/download/v0.4.1-beta/lnd-linux-arm-v0.4.1-beta.tar.gz
</code></pre>

<p>I used this to install the previous version (0.4-beta)</p>

<pre><code>$ tar -xzf lnd-linux-arm-v0.4-beta.tar.gz
$ ls -la
$ sudo install -m 0755 -o root -g root -t /usr/local/bin lnd-linux-arm-v0.4-beta/*
</code></pre>

<p>But how should I proceed if I just want to update, considering I'm not installing from scratch? What commands should I use? Should I backup anything before doing this (like channeldb.db)?</p>

<raspberry-pi><lightning-network-daemon>
Updating a lightning node to latest version
Argo
# Updating a lightning node to latest version

(Asked by: username_0 on 2018-04-04)

I'm running a lightning node on a Raspberry Pi. I'm still learning about the technology and linux as well. But I'm not sure how to securely update my node to the new LND version 0.4.1 and I'd like some directions.
I already downloaded LND binaries and checked the keys.
$ wget https://github.com/lightningnetwork/lnd/releases/download/v0.4.1-beta/lnd-linux-arm-v0.4.1-beta.tar.gz

I used this to install the previous version (0.4-beta)
$ tar -xzf lnd-linux-arm-v0.4-beta.tar.gz
$ ls -la
$ sudo install -m 0755 -o root -g root -t /usr/local/bin lnd-linux-arm-v0.4-beta/*

But how should I proceed if I just want to update, considering I'm not installing from scratch? What commands should I use? Should I backup anything before doing this (like channeldb.db)?

**Tags:** raspberry-pi, lightning-network-daemon


---

## 1 answers

### Answer by username_1 on 2018-05-03. Score: 0 | Accepted answer

Generic update procedure from v0.4.0 to v0.4.1:

* stop LND
* delete macaroon files in LND directory (to prevent [this issue](https://github.com/lightningnetwork/lnd/issues/921))
* install new version exactly like before (as documented above)
* start LND
* unlock wallet with `lncli unlock` to create new macaroon files

In case you are following my [RaspiBolt guide](https://github.com/username_1/guides/blob/master/raspibolt/README.md), you might want to copy the macaroon file to the admin home directory again: `sudo cp /home/bitcoin/.lnd/admin.macaroon /home/admin/.lnd/` (see more details [here](https://github.com/username_1/guides/issues/57))


---

