Upgrading Solana From Source

For those who've built Solana from source, here's how I upgraded.

Upgrade Pre-Requisites

Ensure your system is up to date

brew upgrade
rustup update

Get the Solana Source

Assuming you've already cloned the Solana GitHub repo, checkout the version you want to install

cd ~/path/to/solana
git pull
git tag -l | sort -V | tail -n 10  # List the latest tags
git checkout v1.1.1   # <--- Replace w/ the desired version of Solana

Build and Install Solana

Extract the code and build the binaries

./scripts/cargo-install-all.sh .
export PATH=$PWD/bin:$PATH

This will install the solana binaries into your solana folder.

To install the Solana binaries system-wide (as if using pre-built binaries):

solana-install init

Verify the Upgrade

That should be it!

solana --version
    #solana