Conda is an open source package management system and environment management system that runs on Windows, macOS and Linux. Conda quickly installs, runs and updates packages and their dependencies. Conda easily creates, saves, loads and switches between environments on your local computer. It was created for Python programs, but it can package and distribute software for any language.

Install miniconda

Miniconda is a free minimal installer for conda. It is a small, bootstrap version of Anaconda that includes only conda, Python, the packages they depend on, and a small number of other useful packages, including pip, zlib and a few others.

  • Download

    1. wget -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh
  • Install

    In this process, just type yes or enter.

  1. bash Miniconda3-latest-Linux-x86_64.sh
  2. # reactivate the environment
  3. source ~/.bashrc
  • Configure channels ```shell

    Official website

    conda config —add channels r conda config —add channels conda-forge conda config —add channels bioconda

Mirrored website

conda config —add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config —add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config —add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ conda config —add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/

View the result

cat ~/.condarc

  1. <a name="VwnNG"></a>
  2. ## Create a environment
  3. - Create a environment named `covid` and install python3 to depend on
  4. ```shell
  5. conda create -y -n covid python=3
  6. # -y : The default answer is yes.
  • View existing environments.

    1. conda info --env
  • Install software in covid environment

    Software installed in the environment can only be used in this environment.

  1. # Activate covid environment
  2. conda activate covid
  3. # or
  4. source activate covid
  5. # Install software
  6. conda install -y fastp
  7. conda install -y bwa
  8. conda install -y samtools
  9. conda install -y sambamba
  10. conda install -y spades
  11. conda install -y quast
  12. conda install -y pilon
  13. conda install -y mafft
  14. conda install -y iqtree
  15. # Install a specific version of the software
  16. conda install -y fastp=0.20.1
  17. # Exit the environment
  18. conda deactivate
  • Other common command ```shell

    Search the software

    conda search fastp

View the path where the software was installed.

which fastp

View installed software

conda list conda list -n covid

Update the software

conda update fastp

Uninstall the software

conda remove fastp ```

More Information