23 lines
898 B
Bash
23 lines
898 B
Bash
|
|
# Install our public GPG key to trusted store
|
|
curl https://repo.anaconda.com/pkgs/misc/gpgkeys/anaconda.asc | gpg --dearmor > conda.gpg
|
|
install -o root -g root -m 644 conda.gpg /usr/share/keyrings/conda-archive-keyring.gpg
|
|
|
|
# Check whether fingerprint is correct (will output an error message otherwise)
|
|
gpg --keyring /usr/share/keyrings/conda-archive-keyring.gpg --no-default-keyring --fingerprint 34161F5BF5EB1D4BFBBB8F0A8AEB4F8B29D82806
|
|
|
|
# Add our Debian repo
|
|
|
|
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/conda-archive-keyring.gpg] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" | sudo tee -a /etc/apt/sources.list-available/conda.list
|
|
|
|
ln -s /etc/apt/sources.list-available/conda.list /etc/apt/sources.list.d/conda.list
|
|
|
|
|
|
# Install it!
|
|
apt update
|
|
apt install -y conda
|
|
|
|
# Check to see if the installation is successful:
|
|
source /opt/conda/etc/profile.d/conda.sh
|
|
conda -V
|