Created
June 10, 2019 18:20
-
-
Save RodrigoCMoraes/abfcb17151e62efda2b687556c8d784a to your computer and use it in GitHub Desktop.
Install/Reinstall last Miniconda3
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
| #!/bin/bash | |
| if [ -d ~/miniconda3 ] | |
| then | |
| echo "Deleting directory ~/miniconda3..." | |
| rm -rf ~/miniconda3 ~/.conda | |
| echo "Done" | |
| fi | |
| if [ -f Miniconda3.sh ] | |
| then | |
| echo "Deleting file Miniconda3.sh ..." | |
| rm Miniconda3.sh | |
| echo "Done" | |
| fi | |
| echo "Downloading Miniconda3.sh..." | |
| curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o Miniconda3.sh; | |
| echo "Done" | |
| sudo chmod +x Miniconda3.sh | |
| echo "Installing Miniconda3.sh..." | |
| ./Miniconda3.sh -p $HOME/miniconda3 | |
| source ~/.bashrc | |
| echo "Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment