2019-12-09 12:53:40 +00:00
|
|
|
# Updating Lotus
|
|
|
|
|
2019-12-18 18:40:47 +00:00
|
|
|
If you installed Lotus on your machine, you can upgrade to the latest version by
|
|
|
|
doing the following:
|
2019-12-09 12:53:40 +00:00
|
|
|
|
|
|
|
```sh
|
2019-12-10 15:43:12 +00:00
|
|
|
# get the latest
|
2019-12-09 12:53:40 +00:00
|
|
|
git pull origin master
|
2019-12-10 15:43:12 +00:00
|
|
|
|
|
|
|
# clean and remake the binaries
|
2019-12-11 15:38:04 +00:00
|
|
|
make clean && make build
|
2019-12-09 12:53:40 +00:00
|
|
|
```
|
|
|
|
|
2019-12-18 18:40:47 +00:00
|
|
|
Sometimes when you run Lotus after a pull, certain commands such as
|
|
|
|
`lotus daemon` may break.
|
2019-12-09 12:53:40 +00:00
|
|
|
|
2019-12-18 18:40:47 +00:00
|
|
|
Here is a command that will delete your chain data, stored wallets and any
|
|
|
|
miners you have set up:
|
2019-12-09 12:53:40 +00:00
|
|
|
|
|
|
|
```sh
|
|
|
|
rm -rf ~/.lotus ~/.lotusstorage
|
|
|
|
```
|
|
|
|
|
2019-12-18 18:40:47 +00:00
|
|
|
This command usually resolves any issues with running `lotus` commands but it is
|
|
|
|
not always required for updates. We will share information about when resetting
|
|
|
|
your chain data and miners is required for an update in the future.
|