Skip to content

Instantly share code, notes, and snippets.

@fabriciorsf
Created July 18, 2024 23:01
Show Gist options
  • Save fabriciorsf/56ff52645f4fc1ff0004d18ccf11ea5d to your computer and use it in GitHub Desktop.
Save fabriciorsf/56ff52645f4fc1ff0004d18ccf11ea5d to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p ~/Downloads
sudo mkdir -p /opt/programs
sudo chmod -R a+rwx /opt/programs/.
mkdir -p /opt/programs/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/Downloads/miniconda.sh
bash ~/Downloads/miniconda.sh -b -u -p /opt/programs/miniconda3
echo 'export MINICONDA="/opt/programs/miniconda3"' | sudo tee /etc/profile.d/miniconda.sh
echo 'export CONDA="${MINICONDA}/bin"' | sudo tee --append /etc/profile.d/miniconda.sh
source /etc/profile.d/miniconda.sh
rm -rf ~/Downloads/miniconda.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment