<p>You should be able to just stop the old version, download the new binaries, unpack them, and run them. On the first start <code>lightningd</code> will take care of updating the database if necessary and </p>

<p>Alternatively you can also compile the binaries yourself, like you did before the release:</p>

<pre><code>git clone https://github.com/ElementsProject/lightning.git /opt/lightning
cd /opt/lightning
./configure --disable-developer --disable-valgrind
make 
sudo make install
</code></pre>

<p>Afterwards <code>lightningd</code> and <code>lightning-cli</code> will be in your <code>$PATH</code> and available from everywhere.</p>

CC BY-SA 4.0
2018-07-02T20:30:57.933Z
thanks for the answer! I would like to keep my existing data/config. Will I keep them following the steps you wrote above?
ZsZolee
CC BY-SA 4.0
2018-07-03T15:03:53.603Z
Yes, the database is migrated to the new version automatically, and you should not have to change anything. The one exception may be if you have `--addr` in the commandline or `addr` in the config, that option got split into `bind-addr` and `announce-addr`.
cdecker
CC BY-SA 4.0
2018-07-07T17:51:05.367Z
thank you!
however a problem has occurred when making the source:
gossipd/gossip.c: In function ‘find_local_update’:
gossipd/gossip.c:1702:7: error: implicit declaration of function ‘structeq’ [-Werror=implicit-function-declaration]
   if (structeq(scid, &i->scid))
       ^~~~~~~~
cc1: all warnings being treated as errors
<builtin>: recipe for target 'gossipd/gossip.o' failed
make: *** [gossipd/gossip.o] Error 1
what do you think the problem could be?
thank you in advance!
ZsZolee
CC BY-SA 4.0
2018-07-07T17:58:10.750Z
version: GNU Make 4.1
ZsZolee
CC BY-SA 4.0
2018-07-07T18:22:46.817Z
ok so the problem is that structeq was updated 3 days ago and the code was not updated in gossip.c file... actually the header file hasnt even been included
ZsZolee
CC BY-SA 4.0
2018-06-27T15:01:31.227Z
2018-06-27T15:01:31.227Z
cdecker
<p>How do you update safely to 0.6 the working C-Lightning node?</p>

CC BY-SA 4.0
2018-09-20T12:25:02.670Z
Possible duplicate of [What is the proper way to update C-Lightning?](https://bitcoin.stackexchange.com/questions/77804/what-is-the-proper-way-to-update-c-lightning)
cdecker
<lightning-network><full-node><core-lightning>
C-Lightning update 0.6 doc
ZsZolee
# C-Lightning update 0.6 doc

(Asked by: username_0 on 2018-06-27)

How do you update safely to 0.6 the working C-Lightning node?

**Tags:** lightning-network, full-node, core-lightning

> **Comments:**
> **username_1**: Possible duplicate of [What is the proper way to update C-Lightning?](https://bitcoin.stackexchange.com/questions/77804/what-is-the-proper-way-to-update-c-lightning)  

---

## 1 answers

### Answer by username_1 on 2018-06-27. Score: 2

You should be able to just stop the old version, download the new binaries, unpack them, and run them. On the first start lightningd will take care of updating the database if necessary and 
Alternatively you can also compile the binaries yourself, like you did before the release:
git clone https://github.com/ElementsProject/lightning.git /opt/lightning
cd /opt/lightning
./configure --disable-developer --disable-valgrind
make 
sudo make install

Afterwards lightningd and lightning-cli will be in your $PATH and available from everywhere.

> **Comments:**
> **username_0**: thanks for the answer! I would like to keep my existing data/config. Will I keep them following the steps you wrote above?  
> **username_1**: Yes, the database is migrated to the new version automatically, and you should not have to change anything. The one exception may be if you have `--addr` in the commandline or `addr` in the config, that option got split into `bind-addr` and `announce-addr`.  
> **username_0**: thank you! however a problem has occurred when making the source: gossipd/gossip.c: In function ‘find_local_update’: gossipd/gossip.c:1702:7: error: implicit declaration of function ‘structeq’ [-Werror=implicit-function-declaration]    if (structeq(scid, &i->scid))        ^~~~~~~~ cc1: all warnings being treated as errors <builtin>: recipe for target 'gossipd/gossip.o' failed make: *** [gossipd/gossip.o] Error 1 what do you think the problem could be? thank you in advance!  
> **username_0**: version: GNU Make 4.1  
> **username_0**: ok so the problem is that structeq was updated 3 days ago and the code was not updated in gossip.c file... actually the header file hasnt even been included  

---

