# Install clhep with Homebrew, apt, MacPorts, Nix, zypper

Class Library for High Energy Physics. Version 2.4.7.2 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install clhep
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clhep
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:clhep
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/clhep>
- **Version:** 2.4.7.2
- **Source summary:** Class Library for High Energy Physics
- **Homepage:** <https://proj-clhep.web.cern.ch/proj-clhep/>
- **Repository:** <https://gitlab.cern.ch/CLHEP/CLHEP>
- **Upstream docs:** <https://proj-clhep.web.cern.ch/proj-clhep>
- **License:** GPL-3.0-only
- **Source archive:** <https://gitlab.cern.ch/CLHEP/CLHEP/-/archive/CLHEP_2_4_7_2/CLHEP-CLHEP_2_4_7_2.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- 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 (alias)
- Evaluator-config (alias)
- Exceptions-config (alias)
- GenericFunctions-config (alias)
- Geometry-config (alias)
- Matrix-config (alias)
- Random-config (alias)
- RandomObjects-config (alias)
- RefCount-config (alias)
- Units-config (alias)
- Utility-config (alias)
- Vector-config (alias)
- clhep-config (alias)

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.4.7.2
- Local data: ok
- Upstream repository: https://proj-clhep.web.cern.ch/proj-clhep/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **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

## Other Package-Manager Records

- 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/


## Related links

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


## Sources

- 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
