# 使用 Homebrew, apt, MacPorts, Nix, zypper 安装 clhep

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

## 安装

```sh
sudo av install brew:clhep
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clhep
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clhep
```

  证据: MacPorts ports tree: science/clhep/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install clhep-doc
```

  证据: Debian stable package indexes: clhep-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#clhep
```

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

- zypper (92%):

```sh
sudo zypper install clhep-Cast-devel
```

  证据: openSUSE Tumbleweed package metadata: clhep-Cast-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:clhep
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clhep>
- **版本:** 2.4.7.2
- **来源摘要:** Class Library for High Energy Physics
- **主页:** <https://proj-clhep.web.cern.ch/proj-clhep/>
- **仓库:** <https://gitlab.cern.ch/CLHEP/CLHEP>
- **上游文档:** <https://proj-clhep.web.cern.ch/proj-clhep>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://gitlab.cern.ch/CLHEP/CLHEP/-/archive/CLHEP_2_4_7_2/CLHEP-CLHEP_2_4_7_2.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- Cast-config (cli)
- Evaluator-config (cli)
- Exceptions-config (cli)
- GenericFunctions-config (cli)
- Geometry-config (cli)
- Matrix-config (cli)
- Random-config (cli)
- RandomObjects-config (cli)
- RefCount-config (cli)
- Units-config (cli)
- Utility-config (cli)
- Vector-config (cli)
- clhep-config (cli)
- Cast-config (别名)
- Evaluator-config (别名)
- Exceptions-config (别名)
- GenericFunctions-config (别名)
- Geometry-config (别名)
- Matrix-config (别名)
- Random-config (别名)
- RandomObjects-config (别名)
- RefCount-config (别名)
- Units-config (别名)
- Utility-config (别名)
- Vector-config (别名)
- clhep-config (别名)

## 构建依赖

- cmake

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.4.7.2
- 本地数据: OK
- 上游仓库: https://proj-clhep.web.cern.ch/proj-clhep/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

CLHEP is CERN's Class Library for High Energy Physics, a C++ collection of foundation and utility classes for high-energy-physics software. Its official project page describes packages for random generators, physics vectors, geometry, linear algebra, units, and related HEP building blocks.

### 项目历史

The CLHEP project was proposed by Leif Lonnblad at CHEP 92. CERN's project page presents it as a set of independent HEP-specific foundation and utility packages, with inter-package dependencies allowed only under defined conditions.

The project later moved to CERN GitLab and is maintained as a source-buildable CMake project. The official README documents a modern C++ build, package-config scripts, CMake imported targets, and pkg-config files for both the full library and component libraries.

### 采用历史

CERN's CLHEP page explicitly ties a large fraction of contributions to use in BaBar, the Geant4 Collaboration, and Fermilab's ZOOM project, especially in the Random, Vector, Geometry, and Matrix packages.

The same page notes that CERN LCG formally maintains CLHEP and that HepMC, HepPDT, and StdHep migrated out as standalone external LCG packages, placing CLHEP in the long-running HEP software stack rather than as a one-off library.

### 使用方式

Users typically consume CLHEP as a compiled C++ dependency, either linking the whole CLHEP library or individual packages such as Vector and Random. The README documents `clhep-config`, package-specific `*-config` scripts, CMake `find_package(CLHEP REQUIRED)`, imported targets, and pkg-config integration.

The Homebrew package exposes the library's config helper executables, which is exactly the sort of package-manager surface used by downstream build systems to discover compiler and linker flags.

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

CLHEP matters to package maintainers because it is old scientific infrastructure with ABI, compiler, CMake, pkg-config, and downstream experiment compatibility concerns. It is less a flashy CLI than a dependency that makes physics software stacks build reproducibly on Unix-like systems.

Its formula also illustrates a common scientific-packaging pattern: a library package ships many small `*-config` helper commands that bridge older build expectations and newer CMake/pkg-config workflows.

### 时间线

- 1992: CLHEP is proposed by Leif Lonnblad at CHEP 92.
- 1996: CLHEP workshops are held at CERN.
- 2000: A CLHEP workshop is held at Fermilab.
- 2010: CLHEP 1.9.4.7 and 2.0.4.7 are released.
- 2014: CLHEP 2.1.4.2 is released.
- 2015: CLHEP 2.2.0.8 is released.
- 2018: CLHEP 2.3.4.6 is released.
- 2025: CLHEP 2.4.7.2 is released.

### Related projects

- Geant4, BaBar, and Fermilab ZOOM are named by the CLHEP project page as major sources of CLHEP contributions.
- HepMC, HepPDT, and StdHep are related HEP packages that the CLHEP project page says migrated to standalone external LCG packages.

### 来源

- <https://proj-clhep.web.cern.ch/proj-clhep/>
- <https://gitlab.cern.ch/CLHEP/CLHEP/-/raw/master/README.md>


## 安全说明

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:** clhep
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - clhep-doc - 2.1.4.1+dfsg-1.2: normalized package name match | Debian stable package indexes: clhep-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation of CLHEP | http://proj-clhep.web.cern.ch/proj-clhep/
- Debian apt - libclhep-dev - 2.1.4.1+dfsg-1.2+b1: normalized package name match | Debian stable package indexes: libclhep-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CLHEP: A Class Library for High Energy Physics - development | http://proj-clhep.web.cern.ch/proj-clhep/
- Debian apt - libclhep2.1t64 - 2.1.4.1+dfsg-1.2+b1: normalized package name match | Debian stable package indexes: libclhep2.1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CLHEP: A Class Library for High Energy Physics | http://proj-clhep.web.cern.ch/proj-clhep/
- Nix - clhep: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/clhep/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - clhep-doc - 2.1.4.1+dfsg-1.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: clhep-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Documentation of CLHEP | http://proj-clhep.web.cern.ch/proj-clhep/
- Ubuntu apt - libclhep-dev - 2.1.4.1+dfsg-1.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libclhep-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CLHEP: A Class Library for High Energy Physics - development | http://proj-clhep.web.cern.ch/proj-clhep/
- Ubuntu apt - libclhep2.1t64 - 2.1.4.1+dfsg-1.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libclhep2.1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | CLHEP: A Class Library for High Energy Physics | http://proj-clhep.web.cern.ch/proj-clhep/
- zypper - clhep-Cast-devel - 2.4.7.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: clhep-Cast-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Headers and sources for development with CLHEP Cast library | https://proj-clhep.web.cern.ch/proj-clhep/
- zypper - clhep-Evaluator-devel - 2.4.7.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: clhep-Evaluator-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Headers and sources for development with CLHEP Evaluator library | https://proj-clhep.web.cern.ch/proj-clhep/
- zypper - clhep-Exceptions-devel - 2.4.7.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: clhep-Exceptions-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Headers and sources for development with CLHEP Exceptions library | https://proj-clhep.web.cern.ch/proj-clhep/
- zypper - clhep-GenericFunctions-devel - 2.4.7.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: clhep-GenericFunctions-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Headers and sources for development with CLHEP GenericFunctions library | https://proj-clhep.web.cern.ch/proj-clhep/
- zypper - clhep-Geometry-devel - 2.4.7.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: clhep-Geometry-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Headers and sources for development with CLHEP Geometry library | https://proj-clhep.web.cern.ch/proj-clhep/
- zypper - clhep-Matrix-devel - 2.4.7.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: clhep-Matrix-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Headers and sources for development with CLHEP Matrix library | https://proj-clhep.web.cern.ch/proj-clhep/
- zypper - clhep-Random-devel - 2.4.7.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: clhep-Random-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Headers and sources for development with CLHEP Random library | https://proj-clhep.web.cern.ch/proj-clhep/
- zypper - clhep-RandomObjects-devel - 2.4.7.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: clhep-RandomObjects-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Headers and sources for development with CLHEP RandomObjects library | https://proj-clhep.web.cern.ch/proj-clhep/
- zypper - clhep-RefCount-devel - 2.4.7.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: clhep-RefCount-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Headers and sources for development with CLHEP RefCount library | https://proj-clhep.web.cern.ch/proj-clhep/


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow 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.
- [Web development packages](https://www.automicvault.com/zh-hans/pkg/web-dev-tools/) - Matched web development metadata.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [geos](https://www.automicvault.com/zh-hans/pkg/brew/geos/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [ginac](https://www.automicvault.com/zh-hans/pkg/brew/ginac/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [kim-api](https://www.automicvault.com/zh-hans/pkg/brew/kim-api/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [libdap](https://www.automicvault.com/zh-hans/pkg/brew/libdap/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [ode](https://www.automicvault.com/zh-hans/pkg/brew/ode/) - Shares av.db curated category or tags: cli, physics, science.
- [quantlib](https://www.automicvault.com/zh-hans/pkg/brew/quantlib/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.
- [root](https://www.automicvault.com/zh-hans/pkg/brew/root/) - Shares av.db curated category or tags: c-plus-plus, cern, cli, science.
- [sfcgal](https://www.automicvault.com/zh-hans/pkg/brew/sfcgal/) - Shares av.db curated category or tags: c-plus-plus, cli, library, science.

## Combined YAML source

View the package source record on GitHub. [combined/clhep.yml](https://github.com/automic-vault/db/blob/main/combined/clhep.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
