Geth Deletion and Update – How to Delete Geth and Update Geth in Ethereum?

go-ethereum

I want to uninstall my geth, but I can't. How could I do it

Also, if I'd like to update my geth version, how could I do it?

Edit (added info according to the comment of @Ismael)
I'm using Ubuntu 16. I installed it from PPA, executing these commands:

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum

Best Answer

You can upgrade your client geth with normal debian/ubuntu commands

$ sudo apt-get update
$ sudo apt-get upgrade

To uninstall

$ sudo apt-get remove ethereum

To remove the ubuntu ppa (only do this after you have removed ethereum package)

$ sudo add-apt-repository --remove ppa:ethereum/ethereum

If you have run geth then you probably have $HOME/.ethereum and $HOME/.ethash directories with your keystore and blockchain data. If you used the wallet probably you want to make a backup of $HOME/.ethereum/keystore. If you no longer want to use ethereum in that machine you can remove both directories.