Created
September 24, 2021 03:32
-
-
Save hobson/5746ec79f528accf1cf5b04bff797716 to your computer and use it in GitHub Desktop.
Noninteractive anaconda install of the latest version on linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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