# 使用 Homebrew, apt, dnf, Nix 安装 otf2

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

## 安装

```sh
sudo av install brew:otf2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install otf2
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install libopen-trace-format2-10t64
```

  证据: Debian stable package indexes: libopen-trace-format2-10t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install otf2
```

  证据: Fedora Rawhide package metadata: otf2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#otf2
```

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

## 软件包事实

- **软件包键:** brew:otf2
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/otf2>
- **版本:** 3.2
- **来源摘要:** Open Trace Format 2 file handling library
- **主页:** <https://www.vi-hps.org/projects/score-p/overview/overview.html>
- **上游文档:** <https://perftools.pages.jsc.fz-juelich.de/cicd/otf2/tags/latest/html>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://perftools.pages.jsc.fz-juelich.de/cicd/otf2/tags/otf2-3.2/otf2-3.2.tar.gz>
- **最后更新:** 2026-06-26T15:44:00Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- otf2-config (cli)
- otf2-estimator (cli)
- otf2-marker (cli)
- otf2-print (cli)
- otf2-snapshots (cli)
- otf2-config (别名)
- otf2-estimator (别名)
- otf2-marker (别名)
- otf2-print (别名)
- otf2-snapshots (别名)

## 依赖

- open-mpi
- python@3.14

## 构建依赖

- sphinx-doc

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.2
- 管理器更新时间: 2026-06-26
- 本地数据: OK
- 上游仓库: https://www.vi-hps.org/projects/score-p/overview/overview.html
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Open Trace Format 2 is a high-performance event trace format and support library for high-performance computing performance analysis. It sits in the Score-P tool ecosystem and gives trace writers and analysis tools a common binary format for large parallel program runs.

### 项目历史

OTF2 was created as the common successor to the original Open Trace Format and the Epilog trace format. The 2012 OTF2 paper described it as a redesign informed by those predecessor formats, with a new file encoding, close integration with Score-P, and explicit scalability improvements for large trace data.

The OTF2 manual identifies the library as a Score-P project component and describes the package as an interface for reading and writing trace data, distributed under a BSD license suitable for academic and commercial use. The Score-P documentation groups OTF2 with Cube4 and OPARI2 as part of the wider VI-HPS performance instrumentation and analysis stack.

### 采用历史

VI-HPS documentation describes OTF2 as the standard trace format for Scalasca, Vampir, and TAU, while OLCF user documentation explains that Score-P generates OTF2 traces for analysis by those tools. That combination made OTF2 a package-manager-facing format library rather than just an internal file format.

The original OTF project page at TU Dresden points users from the retired Open Trace Format to OTF2 in the Score-P infrastructure, which marks the transition from first-generation OTF tooling to the Score-P-era trace stack.

### 使用方式

Developers and performance engineers use OTF2 indirectly through Score-P measurement runs and directly through its reader and writer APIs and command-line tools. A typical Score-P workflow instruments C, C++, or Fortran code, runs a measurement, enables tracing, and then analyzes the resulting OTF2 trace with tools such as Vampir.

Package users care about executables such as otf2-print, otf2-config, otf2-estimator, and otf2-snapshots because they make trace files inspectable and scriptable outside a full GUI performance-analysis session.

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

OTF2 is significant because it is a format package with ecosystem gravity: installing it supplies the shared library and utilities behind several HPC profiling and tracing workflows. It is also a good example of a scientific package whose importance comes from interoperability between instrumentation, storage format, and visualization tools.

### 时间线

- 2012: The OTF2 paper introduced Open Trace Format 2 as a redesigned successor to OTF version 1 and Epilog, focused on scalable trace encoding and Score-P integration.
- 2014: TU Dresden listed OTF 1.12.5 as the last stable OTF release and directed users to OTF2 through Score-P.
- 2021: The OTF2 2.3 software record on Zenodo described HIP accelerator and Kokkos paradigm additions, showing the format continuing to track HPC programming models.

### Related projects

- Score-P produces OTF2 traces; Scalasca, Vampir, and TAU consume or work with OTF2 trace data; Cube4 occupies the corresponding profile-data role in the same performance-analysis family.

### 来源

- <https://docs.olcf.ornl.gov/software/profiling/Scorep.html>
- <https://perftools.pages.jsc.fz-juelich.de/cicd/otf2/tags/otf2-3.0/pdf/otf2.pdf>
- <https://tu-dresden.de/zih/forschung/projekte/otf/?set_language=en>
- <https://www.researchgate.net/publication/259229252_Open_Trace_Format_2_The_Next_Generation_of_Scalable_Trace_Formats_and_Support_Libraries>
- <https://www.vi-hps.org/projects/score-p/documentation/documentation.html>
- <https://zenodo.org/records/4682684>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

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

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

- Debian apt - libopen-trace-format2-10t64 - 3.0.3-3.1+b1: normalized package name match | Debian stable package indexes: libopen-trace-format2-10t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Open Trace Format support library - shared library | https://www.vi-hps.org/projects/score-p
- Debian apt - libopen-trace-format2-dev - 3.0.3-3.1+b1: normalized package name match | Debian stable package indexes: libopen-trace-format2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Open Trace Format support library - development files | https://www.vi-hps.org/projects/score-p
- Debian apt - libotf2-trace-dev - 3.0.3-3.1+b1: normalized package name match | Debian stable package indexes: libotf2-trace-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Open Trace Format support library - compatibility symlinks | https://www.vi-hps.org/projects/score-p
- Debian apt - otf2-tools - 3.0.3-3.1+b1: normalized package name match | Debian stable package indexes: otf2-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Open Trace Format support library - tools | https://www.vi-hps.org/projects/score-p
- Debian apt - python3-otf2 - 3.0.3-3.1+b1: normalized package name match | Debian stable package indexes: python3-otf2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Open Trace Format support library - Python3 bindings | https://www.vi-hps.org/projects/score-p
- Nix - otf2: normalized package name match | nixpkgs package indexes: pkgs/by-name/ot/otf2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libopen-trace-format2-10t64 - 3.0.3-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libopen-trace-format2-10t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Open Trace Format support library - shared library | https://www.vi-hps.org/projects/score-p
- Ubuntu apt - libopen-trace-format2-dev - 3.0.3-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libopen-trace-format2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Open Trace Format support library - development files | https://www.vi-hps.org/projects/score-p
- Ubuntu apt - libotf2-trace-dev - 3.0.3-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libotf2-trace-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Open Trace Format support library - compatibility symlinks | https://www.vi-hps.org/projects/score-p
- Ubuntu apt - otf2-tools - 3.0.3-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: otf2-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Open Trace Format support library - tools | https://www.vi-hps.org/projects/score-p
- Ubuntu apt - python3-otf2 - 3.0.3-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-otf2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Open Trace Format support library - Python3 bindings | https://www.vi-hps.org/projects/score-p
- dnf - otf2 - 3.1.1-7.fc45: normalized package name match | Fedora Rawhide package metadata: otf2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Open Trace Format 2 library | http://score-p.org
- dnf - otf2-devel - 3.1.1-7.fc45: normalized package name match | Fedora Rawhide package metadata: otf2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for otf2 | http://score-p.org
- dnf - otf2-doc - 3.1.1-7.fc45: normalized package name match | Fedora Rawhide package metadata: otf2-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for otf2 | http://score-p.org
- dnf - python3-otf2 - 3.1.1-7.fc45: normalized package name match | Fedora Rawhide package metadata: python3-otf2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Python 3 bindings for otf2 | http://score-p.org


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Scientific computing packages](https://www.automicvault.com/zh-hans/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [open-mpi](https://www.automicvault.com/zh-hans/pkg/brew/open-mpi/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [sphinx-doc](https://www.automicvault.com/zh-hans/pkg/brew/sphinx-doc/) - Build dependency declared by Homebrew.
- [cubelib](https://www.automicvault.com/zh-hans/pkg/brew/cubelib/) - Shares av.db curated category or tags: cli, hpc, performance-analysis, science.
- [mpich](https://www.automicvault.com/zh-hans/pkg/brew/mpich/) - Shares av.db curated category or tags: cli, hpc, science.
- [pmix](https://www.automicvault.com/zh-hans/pkg/brew/pmix/) - Shares av.db curated category or tags: cli, hpc, science.
- [flexiblas](https://www.automicvault.com/zh-hans/pkg/brew/flexiblas/) - Shares av.db curated category or tags: cli, hpc, library, science.
- [libbi](https://www.automicvault.com/zh-hans/pkg/brew/libbi/) - Shares av.db curated category or tags: cli, hpc, library, science.
- [pnetcdf](https://www.automicvault.com/zh-hans/pkg/brew/pnetcdf/) - Shares av.db curated category or tags: cli, hpc, library, science.
- [btllib](https://www.automicvault.com/zh-hans/pkg/brew/btllib/) - Shares av.db curated category or tags: cli, library, science.
- [clhep](https://www.automicvault.com/zh-hans/pkg/brew/clhep/) - Shares av.db curated category or tags: cli, library, science.
- [nwchem](https://www.automicvault.com/zh-hans/pkg/brew/nwchem/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, hpc, mpi, open, open-mpi.
- [shamrock](https://www.automicvault.com/zh-hans/pkg/brew/shamrock/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, hpc, mpi, open, open-mpi.

## Combined YAML source

View the package source record on GitHub. [combined/otf2.yml](https://github.com/automic-vault/db/blob/main/combined/otf2.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
