Author

Topic: How to uninstall bitcoin core (linux)? (Read 183 times)

HCP
legendary
Activity: 2086
Merit: 4361
March 18, 2021, 04:46:46 PM
#7
I followed these instructions to install bitcoin core on linux: https://bitcoin.org/en/full-node#linux-instructions
Code:
 sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-0.21.0/bin/* 

But, how can uninstall it now?
Well i found bitcoin files only under /usr/local/bin, i must be lucky ^^
Looking at the command it makes sense that you only found items in /usr/local/bin... As that command takes everything that was in bitcoin-0.21.0/bin/ and effectively "copied" them to /usr/local/bin... so to undo that, you'd just need a list of the files that were in bitcoin-0.21.0/bin/ and then manually delete them from /usr/local/bin
newbie
Activity: 3
Merit: 1
March 16, 2021, 02:33:26 PM
#6
I tried with sudo make uninstall from the source folder but i keep getting
Code:
make: *** No rule to make target 'uninstall'.  Stop.

Right. I forgot the Makefile is generated by ./configure and so doesn't have an uninstall target.

That means we have to do things the trial and error way by looking at my own bitcoind installation and seeing which files belong to it (how? I don't know, by comparing file modification times? Worth a shot.)

Code:
/usr/local/bin/bitcoin-cli
/usr/local/bin/bitcoind
/usr/local/bin/bitcoin-qt
/usr/local/bin/bitcoin-tx
/usr/local/bin/bitcoin-wallet
/usr/local/bin/test_bitcoin
/usr/local/include/bitcoinconsensus.h
/usr/local/lib/libbitcoinconsensus.so
/usr/local/lib/libbitcoinconsensus.so.0
/usr/local/lib/libbitcoinconsensus.so.0.0.0
/usr/local/man/man1/bitcoin-cli.1
/usr/local/man/man1/bitcoind.1
/usr/local/man/man1/bitcoin-qt.1
/usr/local/man/man1/bitcoin-tx.1
/usr/local/man/man1/bitcoin-wallet.1
/usr/local/share/man/man1/bitcoin-cli.1
/usr/local/share/man/man1/bitcoind.1
/usr/local/share/man/man1/bitcoin-qt.1
/usr/local/share/man/man1/bitcoin-tx.1
/usr/local/share/man/man1/bitcoin-wallet.1

Just rm -f all of these (be careful not to blow away your entire /usr/local in the process  Tongue rm can destroy entire folder trees).

Removing these files won't remove the Berkeley DB 4.8 dependencies if that is also installed in /usr/local.

Note: If you installed Core to a folder other than /usr/local, then replace that prefix in the files with your own accordingly.

Well i found bitcoin files only under /usr/local/bin, i must be lucky ^^
Thanks for your help.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
March 16, 2021, 02:03:43 PM
#5
I tried with sudo make uninstall from the source folder but i keep getting
Code:
make: *** No rule to make target 'uninstall'.  Stop.

Right. I forgot the Makefile is generated by ./configure and so doesn't have an uninstall target.

That means we have to do things the trial and error way by looking at my own bitcoind installation and seeing which files belong to it (how? I don't know, by comparing file modification times? Worth a shot.)

Code:
/usr/local/bin/bitcoin-cli
/usr/local/bin/bitcoind
/usr/local/bin/bitcoin-qt
/usr/local/bin/bitcoin-tx
/usr/local/bin/bitcoin-wallet
/usr/local/bin/test_bitcoin
/usr/local/include/bitcoinconsensus.h
/usr/local/lib/libbitcoinconsensus.so
/usr/local/lib/libbitcoinconsensus.so.0
/usr/local/lib/libbitcoinconsensus.so.0.0.0
/usr/local/man/man1/bitcoin-cli.1
/usr/local/man/man1/bitcoind.1
/usr/local/man/man1/bitcoin-qt.1
/usr/local/man/man1/bitcoin-tx.1
/usr/local/man/man1/bitcoin-wallet.1
/usr/local/share/man/man1/bitcoin-cli.1
/usr/local/share/man/man1/bitcoind.1
/usr/local/share/man/man1/bitcoin-qt.1
/usr/local/share/man/man1/bitcoin-tx.1
/usr/local/share/man/man1/bitcoin-wallet.1

Just rm -f all of these (be careful not to blow away your entire /usr/local in the process  Tongue rm can destroy entire folder trees).

Removing these files won't remove the Berkeley DB 4.8 dependencies if that is also installed in /usr/local.

Note: If you installed Core to a folder other than /usr/local, then replace that prefix in the files with your own accordingly.
newbie
Activity: 3
Merit: 1
March 16, 2021, 01:32:10 PM
#4
If your installation prefix is /usr/local then all you have to do is delete files manually from that prefix but this dangerous because you nigh accidentally uninstall a library used by some other program you compiled from source at /usr/local.

You can also use the sudo make uninstall command but for this to work you still have to have the bitcoin source folder lying around, alternatively you can download the source code of your corresponding Bitcoin Core version again, and open a terminal, change directory to it and then run sudo make uninstall.

The sudo part is necessary if you installed it at /usr/local and you're not root.

Then delete the .bitcoin folder in your home folder if you want to erase the user data too (make a backup of your wallet.dat first!)

I tried with sudo make uninstall from the source folder but i keep getting
Code:
make: *** No rule to make target 'uninstall'.  Stop.

I suppose there is no way to uninstall it, i can't find any information in any documentation. Maybe i should simply delete all files in /usr/local/bin , inside that folder only bitcoin files are present:
Code:
ls /usr/local/bin/
bitcoin-cli  bitcoind  bitcoin-qt  bitcoin-tx  bitcoin-wallet  test_bitcoin
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
March 16, 2021, 12:31:44 AM
#3
If your installation prefix is /usr/local then all you have to do is delete files manually from that prefix but this dangerous because you nigh accidentally uninstall a library used by some other program you compiled from source at /usr/local.

You can also use the sudo make uninstall command but for this to work you still have to have the bitcoin source folder lying around, alternatively you can download the source code of your corresponding Bitcoin Core version again, and open a terminal, change directory to it and then run sudo make uninstall.

The sudo part is necessary if you installed it at /usr/local and you're not root.

Then delete the .bitcoin folder in your home folder if you want to erase the user data too (make a backup of your wallet.dat first!)
full member
Activity: 173
Merit: 146
March 15, 2021, 06:30:46 PM
#2
"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".

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

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

Code:
sudo make uninstall or make uninstall
newbie
Activity: 3
Merit: 1
March 15, 2021, 05:45:49 PM
#1
I followed these instructions to install bitcoin core on linux: https://bitcoin.org/en/full-node#linux-instructions
Code:
 sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-0.21.0/bin/* 

But, how can uninstall it now?
Jump to: