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
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.
bash Miniconda3-latest-Linux-x86_64.sh# reactivate the environmentsource ~/.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
<a name="VwnNG"></a>## Create a environment- Create a environment named `covid` and install python3 to depend on```shellconda create -y -n covid python=3# -y : The default answer is yes.
View existing environments.
conda info --env
Install software in
covidenvironmentSoftware installed in the environment can only be used in this environment.
# Activate covid environmentconda activate covid# orsource activate covid# Install softwareconda install -y fastpconda install -y bwaconda install -y samtoolsconda install -y sambambaconda install -y spadesconda install -y quastconda install -y pilonconda install -y mafftconda install -y iqtree# Install a specific version of the softwareconda install -y fastp=0.20.1# Exit the environmentconda deactivate
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
More Information
- Conda documentation: https://docs.conda.io/en/latest/
