# 使用 Homebrew, Nix 安装 blast

查看 blast 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:blast
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install blast
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#blast
```

  证据: nixpkgs package indexes: pkgs/by-name/bl/blast/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:blast
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/blast>
- **版本:** 2.17.0
- **来源摘要:** Basic Local Alignment Search Tool
- **主页:** <https://blast.ncbi.nlm.nih.gov/>
- **上游文档:** <https://blast.ncbi.nlm.nih.gov/>
- **许可证:** LicenseRef-Homebrew-public-domain
- **源码归档:** <https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.17.0/ncbi-blast-2.17.0+-src.tar.gz>
- **最后更新:** 2026-06-22T14:02:53-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- blast_formatter (cli)
- blastdb_aliastool (cli)
- blastdb_convert (cli)
- blastdb_path (cli)
- blastdbcheck (cli)
- blastdbcmd (cli)
- blastdbcp (cli)
- blastn (cli)
- blastp (cli)
- blastx (cli)
- cleanup-blastdb-volumes.py (cli)
- convert2blastmask (cli)
- datatool (cli)
- deltablast (cli)
- dustmasker (cli)
- gc_cli (cli)
- get_species_taxids.sh (cli)
- legacy_blast.pl (cli)
- lmdbxx_sample (cli)
- makeblastdb (cli)
- makeclusterdb (cli)
- makembindex (cli)
- makeprofiledb (cli)
- project_tree_builder (cli)
- psiblast (cli)
- rpsblast (cli)
- rpstblastn (cli)
- run_with_lock (cli)
- seedtop (cli)
- segmasker (cli)
- seqdb_demo (cli)
- seqdb_perf (cli)
- tax4blast (cli)
- tblastn (cli)
- tblastx (cli)
- update_blastdb.pl (cli)
- windowmasker (cli)
- windowmasker_2.2.22_adapter.py (cli)
- blast_formatter (别名)
- blastdb_aliastool (别名)
- blastdb_convert (别名)
- blastdb_path (别名)
- blastdbcheck (别名)
- blastdbcmd (别名)
- blastdbcp (别名)
- blastn (别名)
- blastp (别名)
- blastx (别名)
- cleanup-blastdb-volumes.py (别名)
- convert2blastmask (别名)
- datatool (别名)
- deltablast (别名)
- dustmasker (别名)
- gc_cli (别名)
- get_species_taxids.sh (别名)
- legacy_blast.pl (别名)
- lmdbxx_sample (别名)
- makeblastdb (别名)
- makeclusterdb (别名)
- makembindex (别名)
- makeprofiledb (别名)
- project_tree_builder (别名)
- psiblast (别名)
- rpsblast (别名)
- rpstblastn (别名)
- run_with_lock (别名)
- seedtop (别名)
- segmasker (别名)
- seqdb_demo (别名)
- seqdb_perf (别名)
- tax4blast (别名)
- tblastn (别名)
- tblastx (别名)
- update_blastdb.pl (别名)
- windowmasker (别名)
- windowmasker_2.2.22_adapter.py (别名)

## 依赖

- libomp
- lmdb
- mbedtls@3
- pcre2

## macOS 提供的库

- bzip2
- sqlite

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.17.0
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://blast.ncbi.nlm.nih.gov/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

BLAST, the Basic Local Alignment Search Tool, is one of the defining command-line programs of computational biology. It became the everyday sequence-search utility for comparing DNA and protein sequences against large databases, first through NCBI services and then through local command-line installations.

### 项目历史

NCBI's BLAST help references the 1990 Altschul, Gish, Miller, Myers, and Lipman paper that introduced the Basic Local Alignment Search Tool. The same NCBI reference list traces later BLAST-family milestones including gapped BLAST and PSI-BLAST in 1997, MegaBLAST indexing work in 2008, BLAST+ architecture in 2008, DELTA-BLAST in 2012, Magic-BLAST in 2019, and ElasticBLAST in 2023.

The command-line package distributed today is BLAST+, documented by NCBI's BLAST Command Line Applications User Manual. The developer information page identifies BLAST as public-domain software and points developers to the NCBI C++ Toolkit implementation, matching the public GitHub toolkit repository used for source distribution.

### 采用历史

BLAST became a standard because it joined a fast heuristic alignment algorithm with NCBI's growing public sequence databases. Web BLAST made ad hoc searches accessible, while the command-line applications let labs, sequencing centers, and pipelines run repeatable local searches against custom databases.

Package-manager adoption reflects that role: even when the upstream distribution is from NCBI rather than a typical single-purpose GitHub project, package managers keep `blastn`, `blastp`, `blastx`, `makeblastdb`, `blastdbcmd`, and related executables available as system tools for bioinformatics workflows.

### 使用方式

Common local workflows build a database with `makeblastdb`, search it with tools such as `blastn` or `blastp`, inspect databases with `blastdbcmd`, and format results with `blast_formatter`. NCBI also documents REST access for programmatic searches against hosted services.

The package contains a family of executables rather than one command. That matters for reproducible science because database construction, masking, protein-vs-nucleotide search modes, profile searches, and output formatting are split into scriptable tools.

### 为什么软件包爱好者会关心

For package nerds, BLAST is a canonical example of scientific infrastructure as a Unix package: many binaries, public-domain licensing, local database files, environment/config conventions, and a manual that is closer to laboratory protocol than app documentation.

It is also a reminder that the most important command-line tools are not always developer tools. BLAST made local compute a practical front end to public biological databases, so packaging it well directly affected how biology labs automated sequence analysis.

### 时间线

- 1990: Original BLAST paper published.
- 1997: Gapped BLAST and PSI-BLAST paper published.
- 2008: NCBI BLAST Command Line Applications User Manual citation date and BLAST+ architecture paper appear.
- 2012: DELTA-BLAST paper published.
- 2019: Magic-BLAST paper published.
- 2023: ElasticBLAST cloud-search paper published.

### Related projects

- Related projects and descendants include PSI-BLAST, MegaBLAST, DELTA-BLAST, Magic-BLAST, ElasticBLAST, the NCBI C++ Toolkit, FASTA-family sequence search tools, and downstream workflow systems that wrap BLAST searches.

### 来源

- <https://blast.ncbi.nlm.nih.gov/doc/blast-help/developerinfo.html>
- <https://blast.ncbi.nlm.nih.gov/doc/blast-help/references.html>
- <https://github.com/ncbi/ncbi-cxx-toolkit-public>
- <https://www.ncbi.nlm.nih.gov/books/NBK279690>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .ncbirc, ~/.ncbirc, $NCBI/.ncbirc, /etc/.ncbirc
- Windows: ncbi.ini, %USERPROFILE%\ncbi.ini, %NCBI%\ncbi.ini, %SYSTEMROOT%\ncbi.ini
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** blast
- **Version Scheme:** 0
- **Revision:** 1
- **Conflicts With:** proj
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Nix - blast: normalized package name match | nixpkgs package indexes: pkgs/by-name/bl/blast/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [pcre2](https://pkg.so/zh-hans/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [lmdb](https://pkg.so/zh-hans/brew/lmdb/) - Runtime dependency declared by Homebrew.
- [abricate](https://pkg.so/zh-hans/brew/abricate/) - Popular package that depends on this formula.
- [minimap2](https://pkg.so/zh-hans/brew/minimap2/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science, sequence-alignment.
- [mummer](https://pkg.so/zh-hans/brew/mummer/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science, sequence-alignment.
- [minibwa](https://pkg.so/zh-hans/brew/minibwa/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science, sequence-alignment.
- [lastz](https://pkg.so/zh-hans/brew/lastz/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science, sequence-alignment.
- [samtools](https://pkg.so/zh-hans/brew/samtools/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science.
- [diamond](https://pkg.so/zh-hans/brew/diamond/) - Shares pkgdb curated category or tags: bioinformatics, cli, science, sequence-alignment.
- [bedtools](https://pkg.so/zh-hans/brew/bedtools/) - Shares pkgdb curated category or tags: bioinformatics, cli, genomics, science.
- [ropebwt3](https://pkg.so/zh-hans/brew/ropebwt3/) - Local package facts share a topical domain. Shared terms: bioinformatics, cli, genomics, libomp, science.

## Combined YAML source

View the package source record on GitHub. [combined/blast.yml](https://github.com/mxcl/pkgdb/blob/main/combined/blast.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
