Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: ViceOfBTC21 on January 01, 2020, 08:25:37 PM



Title: Uninstall compiled Bitcoin in linux
Post by: ViceOfBTC21 on January 01, 2020, 08:25:37 PM
Hi, I have installed my own compiled Bitcoin client in Linux. Let's assume I don't want it to clog my system up anymore and I want to get rid of it.

How can I do it?


Title: Re: Uninstall compiled Bitcoin in linux
Post by: Heisenberg_Hunter on January 01, 2020, 08:41:18 PM
Uninstalling bitcoin client in any linux based system is similar to uninstalling a program in linux which you have built from source. Generally users of linux use make install and they were the ones which was mentioned in the bitcoin build notes as you have been trying to build bitcoin from source.

Wait, I've compiled it again and it shows up at (Bitcoin source code)/src/qt. I've did make install and now I have Bitcoin full node complete with GUI on my PC!

But instead of make install you could try using checkinstall. checkinstall command will make the installation and un-installation easier by creating deb packages. See wiki for checkinstall command : CheckInstall (https://en.wikipedia.org/wiki/CheckInstall)

Uninstalling older bitcoin client in Linux can be done using the following command :

Code:
sudo make uninstall or make uninstall


Title: Re: Uninstall compiled Bitcoin in linux
Post by: mocacinno on January 03, 2020, 09:18:56 AM
It might be sufficient to remove the blocks from ~/.bitcoin
The blocks take up more than 200 Gb...

Do make sure you do not delete your wallet.dat (even make a new backup on a secure medium before removing the blocks).

Do realize that if you start your wallet again, it'll need to redownload and reparse all blocks again...


Title: Re: Uninstall compiled Bitcoin in linux
Post by: ViceOfBTC21 on January 03, 2020, 03:50:10 PM
Uninstalling bitcoin client in any linux based system is similar to uninstalling a program in linux which you have built from source. Generally users of linux use make install and they were the ones which was mentioned in the bitcoin build notes as you have been trying to build bitcoin from source.

Wait, I've compiled it again and it shows up at (Bitcoin source code)/src/qt. I've did make install and now I have Bitcoin full node complete with GUI on my PC!

But instead of make install you could try using checkinstall. checkinstall command will make the installation and un-installation easier by creating deb packages. See wiki for checkinstall command : CheckInstall (https://en.wikipedia.org/wiki/CheckInstall)

Uninstalling older bitcoin client in Linux can be done using the following command :

Code:
sudo make uninstall or make uninstall

Where should I run this code? If I need source code, then it's too late, since I deleted it long time ago.


Title: Re: Uninstall compiled Bitcoin in linux
Post by: achow101 on January 03, 2020, 04:13:28 PM
You just need to delete the files where they were copied to. Do:
Code:
cd '/usr/local/bin' && rm -f bitcoind bitcoin-cli bitcoin-tx bitcoin-wallet test_bitcoin bench_bitcoin bitcoin-qt test_bitcoin-qt
cd '/usr/local/include' && rm -f bitcoinconsensus.h
rm -f '/usr/local/lib/libbitcoinconsensus.la'
cd '/usr/local/share/man/man1' && rm -f bitcoind.1 bitcoin-qt.1 bitcoin-cli.1 bitcoin-tx.1 bitcoin-wallet.1
cd '/usr/local/lib/pkgconfig' && rm -f libbitcoinconsensus.pc


Title: Re: Uninstall compiled Bitcoin in linux
Post by: ViceOfBTC21 on April 08, 2020, 07:09:17 PM
You just need to delete the files where they were copied to. Do:
Code:
cd '/usr/local/bin' && rm -f bitcoind bitcoin-cli bitcoin-tx bitcoin-wallet test_bitcoin bench_bitcoin bitcoin-qt test_bitcoin-qt
cd '/usr/local/include' && rm -f bitcoinconsensus.h
rm -f '/usr/local/lib/libbitcoinconsensus.la'
cd '/usr/local/share/man/man1' && rm -f bitcoind.1 bitcoin-qt.1 bitcoin-cli.1 bitcoin-tx.1 bitcoin-wallet.1
cd '/usr/local/lib/pkgconfig' && rm -f libbitcoinconsensus.pc

Is that really enough or should I do more in order to make sure Bitcoin is completely wiped off my system?


Title: Re: Uninstall compiled Bitcoin in linux
Post by: mocacinno on April 09, 2020, 05:42:26 AM
--snip--

Is that really enough or should I do more in order to make sure Bitcoin is completely wiped off my system?

That's really enough to wipe the bitcoin libraries and binaries off of your system. However, the DATA still remains, per default in ~/.bitcoin . As i've said before, even if you no longer want bitcoin binaries on your system, it's still a good idear to backup ~/.bitcoin/wallet.dat (unless you've created a different wallet or changed your path).


Title: Re: Uninstall compiled Bitcoin in linux
Post by: HCP on April 09, 2020, 10:48:08 AM
Is that really enough or should I do more in order to make sure Bitcoin is completely wiped off my system?
What are you actually attempting to achieve? Did you want to simply uninstall Bitcoin to free up some space? Or are you trying to remove all evidence that it was ever on your system, so anyone searching on your computer would not find any traces? ???