# 使用 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
- **版本:** 4.16.0
- **来源摘要:** ECMWF's meteorological plotting software
- **主页:** <https://confluence.ecmwf.int/display/MAGP/Magics>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.16.0
## 项目历史与用法

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
