Skip to content

Install Solana

Andrei Montchik edited this page Apr 15, 2026 · 1 revision

Install and Configure Solana

  • Installation location: ~/.local/share/solana/install/active_release/bin/solana
  • Key pairs: ~/.config/solana/
  1. Install Solana
  2. Update the Solana version to match with Mainnet:
    1. solana cluster-version -um
    2. sh -c "$(curl -sSfL https://release.anza.xyz/v2.0.21/install)"
  3. Confirm that Solana version: solana --version
  4. Find The Rust version for Mainnet
  5. Install the Mainnet Rust version
  6. Generate the Solana keypair: solana-keygen grind --starts-with amo:1
  7. Update the Solana config to use the generated keypair: solana config set --keypair /home/andrei/.config/research/amo_keypair.json
  8. Confirm that the Solana config was updated: solana config get

Uninstall Solana

  1. Make sure that the pubkeys are either backed up or not longer needed. They are usually located in the .config/solana directory.
  2. Delete the .config/solana directory.
  3. Delete the ~/.local/share/solana directory.
  4. Remove references to solana directories from the PATH configuration in .profile file. Confirm that it is not presented in other dot files: grep solana ~/.*.
  5. Re-open the SSH session.

Clone this wiki locally