How to install SRA-tools (fastq-dump, prefetch,... ) on Ubuntu/Linux?
Download SRA-Tools
https://github.com/ncbi/sra-tools/wiki/Downloads
https://trace.ncbi.nlm.nih.gov/Traces/sra/sra.cgi?view=software
# create and go to install directory
cd $HOME/tools/ncbi_sra_tools/
# download latest SRA-toolkit version ( Ubuntu, 2022 )
wget https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/3.0.0/sratoolkit.3.0.0-ubuntu64.tar.gz
# decompress
tar -xvzf sratoolkit.3.0.0-ubuntu64.tar.gz
# check directory name (sra-tools version)
ls
sratoolkit.3.0.0-ubuntu64/
sratoolkit.3.0.0-ubuntu64.tar.gz
# add location to system PATH (using current version directory name)
export PATH=$PATH:$HOME/tools/ncbi_sra_tools/sratoolkit.3.0.0-ubuntu64/bin
# SRA-toolkit configuration: define download path and other tool settings
vdb-config --interactive
For example: define a large temporary download directory (default is location of $TMPDIR )
CACHE: process-local location: /tmp/scratch
https://github.com/ncbi/sra-tools/wiki/05.-Toolkit-Configuration
# check installation
fasterq-dump --help
fasterq-dump -V
fasterq-dump : 3.0.0
Next step
→ fasterq-dump: Download SRA files and convert to fastq