Go here to install Rust.
Go here to install Solana.
Go here to install Yarn.
Anchor binaries are available via an NPM package @project-serum/anchor-cli
. Only x86_64
Linux is supported currently, you must build from source for other OS'.
For now, we can use Cargo to install the CLI.
cargo install --git https://github.com/project-serum/anchor --tag v0.20.1 anchor-cli --locked
On Linux systems you may need to install additional dependencies if cargo install fails. On Ubuntu,
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y pkg-config build-essential libudev-dev
Now verify the CLI is installed properly.
anchor --version