Skip to content

Instantly share code, notes, and snippets.

@hobson
Created September 24, 2021 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hobson/5746ec79f528accf1cf5b04bff797716 to your computer and use it in GitHub Desktop.
Save hobson/5746ec79f528accf1cf5b04bff797716 to your computer and use it in GitHub Desktop.
Noninteractive anaconda install of the latest version on linux
ANACONDA_URL=https://repo.anaconda.com/archive
ANACONDA_PATTERN='Anaconda3-202[0-9][.][0-9]{1,2}-Linux-x86_64[.]sh'
ANACONDA_FILENAME=$(curl "$ANACONDA_URL/index.html" | grep -E -o "$ANACONDA_PATTERN" | tail -n 1)
ANACONDA_URL=$ANACONDA_URL/$ANACONDA_FILENAME
echo "Anaconda Installer URL: $ANACONDA_INSTALLER_URL"
# anaconda
sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
wget "$ANACONDA_URL" -O $HOME/install-anaconda.sh
chmod +x install-anaconda.sh
bash $HOME/install-anaconda.sh -b -p /opt/anaconda3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment