# 使用 Homebrew, dnf, Nix, pacman 安装 root

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

## 安装

```sh
sudo av install brew:root
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install root
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install root
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#root
```

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

- pacman (92%):

```sh
sudo pacman -S root
```

  证据: Arch Linux sync databases: root from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:root
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/root>
- **版本:** 6.40.02
- **来源摘要:** Analyzing petabytes of data, scientifically
- **主页:** <https://root.cern>
- **仓库:** <https://github.com/root-project/root>
- **上游文档:** <https://root.cern>
- **许可证:** LGPL-2.1-or-later
- **源码归档:** <https://root.cern/download/root_v6.40.02.source.tar.gz>
- **最后更新:** 2026-08-03T22:39:44Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- g2root (cli)
- genreflex (cli)
- h2root (cli)
- hadd (cli)
- hist2workspace (cli)
- prepareHistFactory (cli)
- rmkdepend (cli)
- root (cli)
- root-config (cli)
- root.exe (cli)
- rootbrowse (cli)
- rootcint (cli)
- rootcling (cli)
- rootcp (cli)
- rootdrawtree (cli)
- rooteventselector (cli)
- rootls (cli)
- rootmkdir (cli)
- rootmv (cli)
- rootn.exe (cli)
- rootnb.exe (cli)
- rootprint (cli)
- rootreadspeed (cli)
- rootrm (cli)
- roots (cli)
- roots.exe (cli)
- rootslimtree (cli)
- rootssh (cli)
- setxrd.csh (cli)
- thisroot.csh (cli)
- thisroot.fish (cli)
- thisroot.sh (cli)
- g2root (别名)
- genreflex (别名)
- h2root (别名)
- hadd (别名)
- hist2workspace (别名)
- prepareHistFactory (别名)
- rmkdepend (别名)
- root (别名)
- root-config (别名)
- root.exe (别名)
- rootbrowse (别名)
- rootcint (别名)
- rootcling (别名)
- rootcp (别名)
- rootdrawtree (别名)
- rooteventselector (别名)
- rootls (别名)
- rootmkdir (别名)
- rootmv (别名)
- rootn.exe (别名)
- rootnb.exe (别名)
- rootprint (别名)
- rootreadspeed (别名)
- rootrm (别名)
- roots (别名)
- roots.exe (别名)
- rootslimtree (别名)
- rootssh (别名)
- setxrd.csh (别名)
- thisroot.csh (别名)
- thisroot.fish (别名)
- thisroot.sh (别名)

## 依赖

- cfitsio
- civetweb
- davix
- fftw
- freetype
- ftgl
- gcc
- giflib
- gl2ps
- graphviz
- gsl
- jpeg-turbo
- libpng
- libtiff
- lz4
- nlohmann-json
- numpy
- openblas
- openssl@3
- pcre2
- python@3.14
- sqlite
- tbb
- unuran
- vdt
- xrootd
- xxhash
- xz
- zstd

## 构建依赖

- cmake
- ninja
- pkgconf

## macOS 提供的库

- curl
- libxcrypt
- libxml2
- ncurses

## 安装行为

- post-install 钩子: 未定义
- 注意事项: As of ROOT 6.22, you should not need the thisroot scripts; but if you depend on the custom variables set by them, you can still run them: For bash users: . $HOMEBREW_PREFIX/bin/thisroot.sh For zsh users: pushd $HOMEBREW_PREFIX >/dev/null; . bin/thisroot.sh; popd >/dev/null For csh/tcsh users: source $HOMEBREW_PREFIX/bin/thisroot.csh For fish users: . $HOMEBREW_PREFIX/bin/thisroot.fish
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 6.40.02
- 管理器更新时间: 2026-08-03
- 本地数据: OK
- 上游仓库: https://root.cern
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

没有找到 root 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: $ROOTSYS/etc/system.rootrc, ~/.rootrc, ./.rootrc
## 源数据库详情

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

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

- Nix - root: normalized package name match | nixpkgs package indexes: pkgs/by-name/ro/root/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - python3-root - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: python3-root from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Python extension for ROOT | https://root.cern/
- dnf - python3-root+distrdf - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: python3-root+distrdf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Distributed RDataFrame | https://root.cern/
- dnf - python3-root+jupyroot - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: python3-root+jupyroot from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | ROOT Jupyter kernel | https://root.cern/
- dnf - root - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Numerical data analysis framework | https://root.cern/
- dnf - root-cli - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | ROOT command line utilities | https://root.cern/
- dnf - root-cling - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root-cling from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Cling C++ interpreter | https://root.cern/
- dnf - root-core - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root-core from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | ROOT core libraries | https://root.cern/
- dnf - root-fftw - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root-fftw from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | FFTW library for ROOT | https://root.cern/
- dnf - root-foam - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root-foam from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A Compact Version of the Cellular Event Generator | https://root.cern/
- dnf - root-font-files - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root-font-files from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | ROOT font collection | https://root.cern/
- dnf - root-fumili - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root-fumili from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Fumili library for ROOT | https://root.cern/
- dnf - root-gdml - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root-gdml from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | GDML import/export for ROOT geometries | https://root.cern/
- dnf - root-genetic - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root-genetic from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Genetic algorithms for ROOT | https://root.cern/
- dnf - root-genvector - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root-genvector from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Generalized vector library for ROOT | https://root.cern/
- dnf - root-geom - 6.40.02-3.fc45: normalized package name match | Fedora Rawhide package metadata: root-geom from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Geometry library for ROOT | https://root.cern/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Database and data packages](https://pkg.so/zh-hans/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Runtime dependency declared by Homebrew.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [pcre2](https://pkg.so/zh-hans/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [lz4](https://pkg.so/zh-hans/brew/lz4/) - Runtime dependency declared by Homebrew.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [ninja](https://pkg.so/zh-hans/brew/ninja/) - Build dependency declared by Homebrew.
- [numpy](https://pkg.so/zh-hans/brew/numpy/) - Shares pkgdb curated category or tags: cli, science, scientific-computing.
- [metis](https://pkg.so/zh-hans/brew/metis/) - Shares pkgdb curated category or tags: cli, science, scientific-computing.
- [qsoas](https://pkg.so/zh-hans/brew/qsoas/) - Shares pkgdb curated category or tags: cli, data-analysis, science.
- [vtk](https://pkg.so/zh-hans/brew/vtk/) - Shares pkgdb curated category or tags: cli, science, scientific-computing, visualization.
- [healpix](https://pkg.so/zh-hans/brew/healpix/) - Shares pkgdb curated category or tags: cli, data-analysis, science, scientific-computing.
- [clhep](https://pkg.so/zh-hans/brew/clhep/) - Shares pkgdb curated category or tags: c-plus-plus, cern, cli, science.
- [teem](https://pkg.so/zh-hans/brew/teem/) - Shares pkgdb curated category or tags: cli, science, scientific-computing, visualization.
- [xlispstat](https://pkg.so/zh-hans/brew/xlispstat/) - Shares pkgdb curated category or tags: cli, data-analysis, science, scientific-computing.
- [itk](https://pkg.so/zh-hans/brew/itk/) - Local package facts share a topical domain. Shared terms: cli, computing, fftw, freetype, jpeg.

## Combined YAML source

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


## 来源

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