Because Bitcoin is no longer being built for EL6, it is necessary to migrate to EL7 in order to use current Bitcoin releases.
In addition it is necessary to follow a special procedure to preserve the Bitcoin wallet, as the wallet.dat used on EL6 is slightly different than that used on all other distributions (including upstream).
To migrate to EL7, follow this process. At the end, you will have bitcoind running on EL7 and your wallet.dat will be converted to the standard format used on all other distributions.
- On the EL6 server, log in as root or use
- Dump a JSON copy of the wallet.
bitcoin-cli -conf=/etc/bitcoin/bitcoin.conf dumpwallet /root/wallet.json.
- Shut down bitcoind.
service bitcoin stop.
/var/lib/bitcoin/wallet.datto a safe place.
mv /var/lib/bitcoin/wallet.dat /root
Warning: Note that the following steps assume that you are installing a new EL7 system to replace the EL6 system. If you do an in-place upgrade from EL6 to EL7, you can skip steps 5, 6 and 7. Instead, do the in-place upgrade and then continue with step 8.
- On the EL7 server, log in as root or use
- On the EL7 server, install bitcoind and set an RPC password as specified in the installation instructions.
yum install bitcoin
- Copy the entire
wallet.dat, from your EL6 system to your EL7 system. You can
tarit up, use
rsync, a large USB flash drive, or whatever method you wish. Also copy the wallet dump file
If you did an in-place upgrade, skip steps 5, 6 and 7, and continue with step 8.
- Start bitcoind if you have not already done so.
systemctl start bitcoin
- Import the wallet dump file into bitcoind on the EL7 server.
bitcoin-cli -conf=/etc/bitcoin/bitcoin.conf importwallet /root/wallet.json.
At this point bitcoind will automatically rescan the blockchain; this may take several hours if you have a slow hard drive.
Now you have successfully migrated bitcoind from EL6 to EL7.