-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall-conda.sh
35 lines (25 loc) · 985 Bytes
/
install-conda.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Define the URL for the latest Miniconda installer
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"
# Define the path where the installer will be downloaded
INSTALLER_PATH="$HOME/Miniconda3-latest-Linux-x86_64.sh"
# Download the Miniconda installer
echo "Downloading Miniconda installer..."
curl -o $INSTALLER_PATH $MINICONDA_URL
# Define the installation path
INSTALL_PATH="$HOME/miniconda3"
# Install Miniconda silently
echo "Installing Miniconda..."
bash $INSTALLER_PATH -b -p $INSTALL_PATH
# Remove the installer after installation
rm $INSTALLER_PATH
# Initialize conda for bash
echo "Initializing conda for bash..."
$INSTALL_PATH/bin/conda init bash
# Reload the profile in the current session to activate conda
echo "Reloading the profile..."
source "$HOME/.bashrc"
# Verify the installation
echo "Verifying conda installation..."
conda --version
echo "Miniconda installation and configuration completed successfully."