-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcondaDL.sh
executable file
·53 lines (53 loc) · 4.89 KB
/
condaDL.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/bash -l
chmod 2775 /sw/apps/mc3/latest/rackham/repo
chmod 2775 /sw/apps/mc3/latest/rackham/repo/noarch
cd /sw/apps/mc3/latest/rackham/repo/noarch
DATE=`date '+%Y-%m-%d_%H.%M.%S'`
LOGFILE=/home/jonass/conda_logs/condaDL_$DATE.log
echo "https://conda.anaconda.org/scilifelab-lts/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=2 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://conda.anaconda.org/scilifelab-lts/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://repo.anaconda.com/pkgs/main/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=3 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://repo.anaconda.com/pkgs/main/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://repo.continuum.io/pkgs/main/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=3 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://repo.continuum.io/pkgs/main/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://conda.anaconda.org/bioconda/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=2 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://conda.anaconda.org/bioconda/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://conda.anaconda.org/conda-forge/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=2 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://conda.anaconda.org/conda-forge/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://repo.continuum.io/pkgs/free/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=3 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://repo.continuum.io/pkgs/free/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://repo.continuum.io/pkgs/r/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=3 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://repo.continuum.io/pkgs/r/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://repo.continuum.io/pkgs/pro/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=3 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://repo.continuum.io/pkgs/pro/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://conda.anaconda.org/bioconda/noarch/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=2 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://conda.anaconda.org/bioconda/noarch/ 2>&1 | tee -a $LOGFILE
echo "https://conda.anaconda.org/conda-forge/noarch/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=2 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://conda.anaconda.org/conda-forge/noarch/ 2>&1 | tee -a $LOGFILE
echo "https://repo.continuum.io/pkgs/free/noarch/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=3 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://repo.continuum.io/pkgs/free/noarch/ 2>&1 | tee -a $LOGFILE
echo "https://conda.anaconda.org/qiime2/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=2 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://conda.anaconda.org/qiime2/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://conda.anaconda.org/biocore/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=2 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://conda.anaconda.org/biocore/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://conda.anaconda.org/qiime2/label/r2018.11/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=4 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://conda.anaconda.org/qiime2/label/r2018.11/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://conda.anaconda.org/r/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=4 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://conda.anaconda.org/r/linux-64/ 2>&1 | tee -a $LOGFILE
echo "https://conda.anaconda.org/dranew/linux-64/" >> $LOGFILE
wget -N -c -r -np -nH --cut-dirs=4 -R "index.html*" -R "repodata.json*" -R "tensorflow-base-1.9.0-gpu_py27h9f529ab_*" https://conda.anaconda.org/dranew/linux-64/ 2>&1 | tee -a $LOGFILE
cp -av repodata.json /sw/apps/mc3/latest/rackham/backups/repodata.json.bak
cp -av .index.json /sw/apps/mc3/latest/rackham/backups/.index.json.bak
module load mc3/latest 2>>$LOGFILE
echo "UPDATING CONDA" >> $LOGFILE
conda update conda -y -c defaults --override-channels -vvv 2>&1 | tee -a $LOGFILE
echo "UPDATING CONDA-BUILD" >> $LOGFILE
conda update conda-build -y -c defaults --override-channels -vvv 2>&1 | tee -a $LOGFILE
echo "INDEXING CONDA" >> $LOGFILE
cd /sw/apps/mc3/latest/rackham/repo
conda-index --channel-name CONDA_UPPMAX --verbose 2>&1 | tee -a $LOGFILE
conda clean -ilpt
module unload mc3
#chmod -w /sw/apps/mc3/latest/rackham/repo
#chmod -w /sw/apps/mc3/latest/rackham/repo/noarch
echo "FINISHED" >> $LOGFILE