# 使用 Homebrew, apt 安装 magics

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

## 安装

```sh
sudo av install brew:magics
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install magics
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install libmagics++-data
```

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

## 软件包事实

- **软件包键:** brew:magics
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/magics>
- **版本:** 4.16.0
- **来源摘要:** ECMWF's meteorological plotting software
- **主页:** <https://confluence.ecmwf.int/display/MAGP/Magics>
- **上游文档:** <https://confluence.ecmwf.int/display/MAGP/Magics>
- **许可证:** Apache-2.0
- **源码归档:** <https://confluence.ecmwf.int/download/attachments/3473464/Magics-4.16.0-Source.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- magics (cli)
- magicsCompatibilityChecker (cli)
- magjson (cli)
- magjsonx (cli)
- magml (cli)
- magmlx (cli)
- metgram (cli)
- metgram.sh (cli)
- metgramx (cli)
- magics (别名)
- magicsCompatibilityChecker (别名)
- magjson (别名)
- magjsonx (别名)
- magml (别名)
- magmlx (别名)
- metgram (别名)
- metgram.sh (别名)
- metgramx (别名)

## 依赖

- cairo
- eccodes
- gettext
- glib
- harfbuzz
- netcdf
- pango
- proj
- qtbase

## 构建依赖

- cmake
- pkgconf

## macOS 提供的库

- expat

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.16.0
- 本地数据: OK
- 上游仓库: https://confluence.ecmwf.int/display/MAGP/Magics
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Magics is ECMWF's meteorological plotting package for visualising weather and climate data. It supports GRIB, NetCDF, BUFR, and ODB data and produces map and chart output in formats such as PostScript, PDF, PNG, GIF, and SVG.

### 项目历史

The official ECMWF page describes Magics as meteorological plotting software accessible directly through Python or Fortran interfaces or through Metview. The project supports meteorological-specific plot types including contours, wind fields, observations, satellite images, symbols, axes, text, and graphs.

Its visible release history predates the public GitHub mirror. The ECMWF Confluence release list includes Magics 2.x tarballs in 2012, the 2.22 series moving installation to CMake in 2015, Magics 3.0.0 becoming Python 3 ready in December 2017, and Magics 4.0.0 as a production release in February 2019.

### 采用历史

Magics adoption is concentrated in meteorology, earth-science, and ECMWF workflows rather than general-purpose CLI use. The official documentation ties it to ECMWF's ecCodes for GRIB handling and to Metview, while the companion `magics-python` repository packages the Python interface.

The supplied Homebrew input shows packaged availability in Homebrew and Debian/Ubuntu as `libmagics++-data`. ECMWF's page also advertises PyPI, Conda, and Docker badges, which fits its scientific-computing distribution model.

### 使用方式

Users call Magics through Python, Fortran, Metview, or command-line helpers to produce meteorological plots from GRIB, BUFR, NetCDF, ODB, and gridded fields. It is infrastructure-like plotting software rather than a single-purpose command.

Package-manager users usually care that the native Magics libraries and data files are present because higher-level ECMWF tools, notebooks, and Python bindings depend on them.

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

Magics is package-nerd significant because it is a domain-specific native stack with scientific data formats, C++ and Fortran code, Python bindings, and data assets. It tends to surface in formulae and distro packages as part of the ECMWF weather-toolchain cluster with ecCodes and Metview.

Its release trail is valuable for maintainers because ABI, CMake, Python, and format support changes matter to downstream meteorological software.

### 时间线

- 2012: Magics 2.x source tarballs appear in ECMWF's release list.
- 2015: Magics 2.22 installation changed to CMake.
- 2017: Magics 3.0.0 released as the first Python 3 ready version.
- 2019: Magics 4.0.0 production release published.
- 2025: Magics 4.16.0 source tarball published on ECMWF Confluence.

### Related projects

- ecCodes handles GRIB data used by Magics.
- Metview can use Magics for plotting.
- magics-python provides the Python interface to the Magics plotting package.

### 来源

- <https://confluence.ecmwf.int/display/MAGP/Magics>
- <https://github.com/ecmwf/magics>
- <https://github.com/ecmwf/magics-python>
- <https://github.com/ecmwf/magics/blob/develop/INSTALL>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** magics
- **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 - libmagics++-data - 4.16.0+really4.15.5-1: normalized package name match | Debian stable package indexes: libmagics++-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Data files needed for magics++ library | https://software.ecmwf.int/wiki/display/MAGP/Magics
- Debian apt - libmagics++-dev - 4.16.0+really4.15.5-1: normalized package name match | Debian stable package indexes: libmagics++-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for ECMWF plotting software MAGICS++ | https://software.ecmwf.int/wiki/display/MAGP/Magics
- Debian apt - libmagics++-metview-dev - 4.16.0+really4.15.5-1: normalized package name match | Debian stable package indexes: libmagics++-metview-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Libraries needed for building MetView | https://software.ecmwf.int/wiki/display/MAGP/Magics
- Debian apt - libmagplus3v5 - 4.16.0+really4.15.5-1: normalized package name match | Debian stable package indexes: libmagplus3v5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ECMWF meteorological plotting software library | https://software.ecmwf.int/wiki/display/MAGP/Magics
- Debian apt - magics++ - 4.16.0+really4.15.5-1: normalized package name match | Debian stable package indexes: magics++ from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Executables for the magics++ library | https://software.ecmwf.int/wiki/display/MAGP/Magics
- Ubuntu apt - libmagics++-data - 4.15.3-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libmagics++-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Data files needed for magics++ library | https://software.ecmwf.int/wiki/display/MAGP/Magics
- Ubuntu apt - libmagics++-dev - 4.15.3-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libmagics++-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for ECMWF plotting software MAGICS++ | https://software.ecmwf.int/wiki/display/MAGP/Magics
- Ubuntu apt - libmagics++-metview-dev - 4.15.3-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libmagics++-metview-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Libraries needed for building MetView | https://software.ecmwf.int/wiki/display/MAGP/Magics
- Ubuntu apt - libmagplus3v5 - 4.15.3-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libmagplus3v5 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ECMWF meteorological plotting software library | https://software.ecmwf.int/wiki/display/MAGP/Magics
- Ubuntu apt - magics++ - 4.15.3-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: magics++ from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Executables for the magics++ library | https://software.ecmwf.int/wiki/display/MAGP/Magics


## 相关链接

- [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.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Runtime dependency declared by Homebrew.
- [harfbuzz](https://pkg.so/zh-hans/brew/harfbuzz/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [pango](https://pkg.so/zh-hans/brew/pango/) - Runtime dependency declared by Homebrew.
- [cairo](https://pkg.so/zh-hans/brew/cairo/) - Runtime dependency declared by Homebrew.
- [qtbase](https://pkg.so/zh-hans/brew/qtbase/) - Runtime dependency declared by Homebrew.
- [proj](https://pkg.so/zh-hans/brew/proj/) - Runtime dependency declared by Homebrew.
- [netcdf](https://pkg.so/zh-hans/brew/netcdf/) - 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.
- [metview](https://pkg.so/zh-hans/brew/metview/) - Popular package that depends on this formula.
- [libgr](https://pkg.so/zh-hans/brew/libgr/) - Shares pkgdb curated category or tags: cli, plotting, science, visualization.
- [grace](https://pkg.so/zh-hans/brew/grace/) - Shares pkgdb curated category or tags: cli, plotting, science, visualization.
- [vtk](https://pkg.so/zh-hans/brew/vtk/) - Shares pkgdb curated category or tags: cli, science, visualization.
- [gnuplot](https://pkg.so/zh-hans/brew/gnuplot/) - Shares pkgdb curated category or tags: cli, plotting, science.
- [root](https://pkg.so/zh-hans/brew/root/) - Shares pkgdb curated category or tags: cli, science, visualization.
- [gmt](https://pkg.so/zh-hans/brew/gmt/) - Shares pkgdb curated category or tags: cli, plotting, science.
- [libdap](https://pkg.so/zh-hans/brew/libdap/) - Shares pkgdb curated category or tags: cli, science, scientific-data.
- [plplot](https://pkg.so/zh-hans/brew/plplot/) - Local package facts share a topical domain. Shared terms: cairo, cli, data, gettext, glib.

## Combined YAML source

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


## 来源

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