Last active
August 12, 2024 02:04
-
-
Save larry0x/54688a65bc7859ec806fcbd9386c3a8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update ubuntu packages | |
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y | |
# update rust | |
rustup update && rustc -V | |
# update cargo global dependencies | |
# dependencies: | |
# sudo apt install build-essential libssl-dev wget pkg-config | |
cargo install cargo-update --bin cargo-install-update | |
cargo install-update -a | |
# update go | |
GO_VERSION="1.21.0" | |
curl -LO https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz && \ | |
tar xfz ./go${GO_VERSION}.linux-amd64.tar.gz && \ | |
rm ./go${GO_VERSION}.linux-amd64.tar.gz && \ | |
sudo rm -rf /usr/local/go && \ | |
sudo mv go /usr/local && \ | |
go version | |
# update nodejs | |
nvm ls-remote # find the latest LTS | |
NODE_VERSION="18.17.1" && \ | |
nvm install $NODE_VERSION && \ | |
nvm use $NODE_VERSION && \ | |
nvm alias default $NODE_VERSION && \ | |
npm install -g npm@latest | |
node --version | |
npm --version | |
# update geth | |
cd go-ethereum | |
git pull | |
git checkout <TAG> | |
make geth | |
mv build/bin/geth $GOBIN | |
geth version | |
# geth pruning | |
du -h -d1 /data | |
nohup geth snapshot prune-state > prune.log & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment