-
Notifications
You must be signed in to change notification settings - Fork 68
Anaconda_Offline_Installation
Charles Doutriaux edited this page May 24, 2018
·
10 revisions
Install a brand new Anaconda if you only want the packages needed for
CDAT and Anaconda on the "offline" machine
- Download the latest Anaconda on your online machine.
# This can be ran from any directory, we recommend $HOME or an empty directory
if [ `uname` = "Linux" ]; then wget -q https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh; fi
if [ `uname` = "Darwin" ]; then wget -q https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
bash miniconda.sh -b -p `pwd`/miniconda
export PATH=`pwd`/miniconda/bin:${PATH}
conda install -n base conda-build
cd miniconda/pkgs
wget --no-check -i urls.txt #To get all the anaconda original tarballs from continuum.io repository.
-
Install CDAT on your "online" machine using the standard procedure.
conda install -n base conda-build
conda create -n cdat -c conda-forge -c cdat cdat
source activate cdat
- Copy/Install Anaconda on your offline machine.
- Copy all the packages to your offline machine channel.
scp miniconda.sh offline.machine:$SOMEPATH/miniconda.sh
if [ `uname` = "Linux" ]; then scp miniconda/pkgs/*.tar.bz2 offline.machine:$SOMEPATH/my_channel/linux-64 ; fi
if [ `uname` = "Darwin" ]; then scp miniconda/pkgs/*.tar.bz2 offline.machine:$SOMEPATH/my_channel/osx-64 ; fi
# or any other means you have to transfer to the offline machine
# Now on the `offline` machine
```bash
cd $SOMEPATH
bash ./miniconda.sh -b -p `pwd`/miniconda # where -b stand for batch mode
export PATH=`pwd`/miniconda/bin/:$PATH
- Create a index of your new channel using the "conda index" command.
conda index `pwd`/my_channel/osx-64/
mkdir `pwd`/my_channel/noarch/
conda index `pwd`/my_channel/noarch
- Create a cdat environment on your offline machine using your new local channel.
conda create -n cdat cdat -c file:/`pwd`/my_channel --offline
source activate cdat