专栏名称: 生信媛
生信媛,从1人分享,到8人同行。坚持分享生信入门方法与课程,持续记录生信相关的分析pipeline, python和R在生物信息学中的利用。内容涵盖服务器使用、基因组转录组分析以及群体遗传。
目录
相关文章推荐
51好读  ›  专栏  ›  生信媛

如何搭建一个本地的anaconda镜像站点

生信媛  · 公众号  · 生物  · 2020-11-05 14:56

正文

如果你的服务器处于内网,无法直接访问anaconda或者清华镜像源,那么你可以尝试自己搭建一个本地镜像站点。

同步数据

安装conda

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-4.7.10-Linux-x86_64.sh
bash  Miniconda3-4.7.10-Linux-x86_64.sh

需额外安装 pyquery 和 conda-build

pip install pyquery
conda install conda-build 

下载清华的 anaconda.py

wget https://raw.githubusercontent.com/tuna/tunasync-scripts/master/anaconda.py

修改CONDA_REPOS, 我们只需要 main 和 free

CONDA_REPOS = ("main""free")

修改 CONDA_ARCHES, 使其只下载 64位Linux对应的内容

CONDA_ARCHES = ("linux-64", )

修改CONDA_CLOULD_REPOS, 使其只下载 conda-forge 和 bioconda 等内容

CONDA_ARCHES = (
    "conda-forge/linux-64",
    "bioconda/linux-64",
)

删除或者注释掉如下内容,我们不需要下载miniconda和archive

    for dist in ("archive""miniconda"):
        remote_url = "{}/{}"






请到「今天看啥」查看全文