Install Rust

1
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

install solana CLI

1
2
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"

1
solana --version

Install Anchor CLI

1
2
3
4
sudo apt install build-essential

cargo install --git https://github.com/coral-xyz/anchor avm --force

1
2
3
4
5
6
7
8


avm install latest

avm use latest

anchor --version

install nvm and node

1
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
1
2
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
1
2
nvm install node
npm install --global yarn