I'm currently running Bitcoin Core using the precompiled tar.gz that I downloaded off bitcoin.org, but I'm tired of having to update it manually. Is it possible to switch between the precompiled package and the snap package without having to redownload all of the blocks?
On top of that bitcoin.org appears to be down so I don't know where else to download a safe copy of Bitcoin Core
EDIT: Solution found. Works on my Ubuntu install. Here are the steps for switching from the precompiled binary to the Snap package. These steps also did not break my LND install.
- Stop Bitcoin Core using
bitcoin-cli stop
. Be sure to also stop any programs dependent on Bitcoin Core running, like LND or C-Lightning. - Download the Snap package:
sudo snap install bitcoin-core
- Binaries are installed to /snap/bitcoin-core/current/bin. You will need to replace the binaries found in /usr. First, find out where the currently installed Bitcoin Core binary is with
whereis bitcoind
andwhereis bitcoin-cli
. These commands tell you where these commands are located. Repeat this process forbitcoin-qt
if you need the GUI. - Change the directory to the directory where
bitcoind
andbitcoin-cli
are installed. - Delete these binaries using
sudo rm bitcoind && sudo rm bitcoin-cli
. Also removebitcoin-qt
as needed withsudo rm bitcoin-qt
- Symlink them to the binaries installed by Snap:
sudo ln /snap/bitcoin-core/current/bin/bitcoind bitcoind -s && sudo ln /snap/bitcoin-core/current/bin/bitcoin-cli bitcoin-cli -s
. For the GUI, you also needsudo ln /snap/bitcoin-core/current/bin/bitcoin-qt bitcoin-qt -s
.
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments