# 使用 Homebrew, pacman, apt 安装 libmatio

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

## 安装

```sh
sudo av install brew:libmatio
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libmatio
```

  证据: local Homebrew formula metadata

### Linux

- pacman (92%):

```sh
sudo pacman -S libmatio
```

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

- Debian apt (92%):

```sh
sudo apt install libmatio-dev
```

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

## 软件包事实

- **软件包键:** brew:libmatio
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libmatio>
- **版本:** 1.5.30
- **来源摘要:** C library for reading and writing MATLAB MAT files
- **主页:** <https://matio.sourceforge.net/>
- **上游文档:** <https://matio.sourceforge.net/>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://downloads.sourceforge.net/project/matio/matio/1.5.30/matio-1.5.30.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- matdump (cli)
- matdump (别名)

## 依赖

- hdf5

## 安装行为

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

## 版本和新鲜度

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

MATIO is a small C library for reading and writing MATLAB MAT files without linking an application to MATLAB itself. In package-manager terms it fills the unglamorous but important role of letting scientific and engineering tools exchange .mat data in batch jobs, converters, bindings, and libraries.

### 项目历史

The project is hosted on SourceForge and its documentation describes MATIO as an open-source C library for binary MATLAB MAT files. The README explains the practical motivation: programs and libraries may need MAT-file access even when they do not have MATLAB or do not want to depend on MATLAB shared libraries.

MATIO evolved around the details of MATLAB's changing file formats, especially the older v4/v5 formats and HDF5-backed MAT files. Later release notes show continuing work on HDF5 compatibility, Unicode filenames, large files, CMake support, security fixes for crafted files, and the matdump command-line utility.

### 采用历史

MATIO's adoption is mostly invisible infrastructure: it appears as libmatio or libmatio-dev in Unix package managers and is useful to projects that need MAT-file interchange rather than a full MATLAB runtime. The project's own acknowledgements name contributors and users from numerical, simulation, and scientific software communities, including Scilab, OpenMEEG, Nelson, and the Modelica Association.

For Homebrew users, libmatio provides the library and matdump executable as a normal formula, which makes MATLAB data inspection and conversion available in scripts on macOS and Linux without installing a larger scientific stack.

### 使用方式

Developers use MATIO through its C API to open MAT files, inspect variables, and read or write arrays and metadata. The matdump utility gives package users a quick command-line way to examine MAT-file contents.

The package is especially useful around mixed MATLAB, Octave, Scilab, Python, C, and Fortran workflows where .mat files are the interchange format but the producer and consumer are not both MATLAB.

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

MATIO is a classic package-nerd dependency: few users install it for its own interface, but many scientific packages need the capability it provides. It turns a proprietary application's file format into a portable Unix library dependency.

Its maintenance history also shows why small file-format libraries matter: release notes repeatedly mention bounds checks, CVEs, HDF5 compatibility, and build-system portability, all of which affect downstream scientific tools more than end-user headlines.

### 时间线

- 2000s: MATIO becomes a SourceForge-hosted C library for MATLAB MAT-file I/O.
- 2018: MATIO 1.5.12 adds append support for struct arrays in HDF5 MAT files and fixes character-array handling.
- 2020: MATIO 1.5.18 adds CMake support and updates HDF5 and Windows filename handling.
- 2022: MATIO 1.5.22 adds support for reading large MAT files and fixes crafted-file heap overflows.
- 2026: MATIO 1.5.30 is released with const-correctness changes, a Mat_VarCreateStruct deprecation, and memory-leak fixes.

### Related projects

- MATLAB and GNU Octave are the main ecosystems that make MAT files a common interchange target.
- HDF5 is important for newer MAT-file variants and appears repeatedly in MATIO release notes.
- JMatIO and MAT-file I/O libraries for LabVIEW cover similar interchange needs in other language or tool ecosystems.

### 来源

- <https://formulae.brew.sh/formula/libmatio>
- <https://github.com/tbeu/matio>
- <https://github.com/tbeu/matio/releases>
- <https://matio.sourceforge.net/>
- <https://sourceforge.net/p/matio/news/>
- <https://sourceforge.net/projects/matio/>


## 安全说明

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

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

- Debian apt - libmatio-dev - 1.5.28-2: normalized package name match | Debian stable package indexes: libmatio-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MATLAB MAT File I/O Library - development files | https://sourceforge.net/projects/matio
- Debian apt - libmatio-doc - 1.5.28-2: normalized package name match | Debian stable package indexes: libmatio-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MATLAB MAT File I/O Library - documentation files | https://sourceforge.net/projects/matio
- Debian apt - libmatio13 - 1.5.28-2: normalized package name match | Debian stable package indexes: libmatio13 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MATLAB MAT File I/O Library - shared library | https://sourceforge.net/projects/matio
- Debian apt - matio-tools - 1.5.28-2: normalized package name match | Debian stable package indexes: matio-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MATLAB MAT File I/O Library - command-line tools | https://sourceforge.net/projects/matio
- Ubuntu apt - libmatio-dev - 1.5.26-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libmatio-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MATLAB MAT File I/O Library - development files | https://sourceforge.net/projects/matio
- Ubuntu apt - libmatio-doc - 1.5.26-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libmatio-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MATLAB MAT File I/O Library - documentation files | https://sourceforge.net/projects/matio
- Ubuntu apt - libmatio11 - 1.5.26-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libmatio11 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MATLAB MAT File I/O Library - shared library | https://sourceforge.net/projects/matio
- Ubuntu apt - matio-tools - 1.5.26-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: matio-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MATLAB MAT File I/O Library - command-line tools | https://sourceforge.net/projects/matio
- pacman - libmatio - 1.5.30-1: normalized package name match | Arch Linux sync databases: libmatio from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | C library with a fortran 90/95 module interface for reading/writing MATLAB MAT-files | https://sourceforge.net/projects/matio


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://pkg.so/zh-hans/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [hdf5](https://pkg.so/zh-hans/brew/hdf5/) - Runtime dependency declared by Homebrew.
- [vips](https://pkg.so/zh-hans/brew/vips/) - Popular package that depends on this formula.
- [dynare](https://pkg.so/zh-hans/brew/dynare/) - Popular package that depends on this formula.
- [libmaxminddb](https://pkg.so/zh-hans/brew/libmaxminddb/) - Shares pkgdb curated category or tags: c, cli, data, library.
- [parquet-cli](https://pkg.so/zh-hans/brew/parquet-cli/) - Shares pkgdb curated category or tags: cli, data, file-formats.
- [libmemcached](https://pkg.so/zh-hans/brew/libmemcached/) - Shares pkgdb curated category or tags: c, cli, data, library.
- [mcap](https://pkg.so/zh-hans/brew/mcap/) - Shares pkgdb curated category or tags: cli, data, file-formats.
- [liblzf](https://pkg.so/zh-hans/brew/liblzf/) - Shares pkgdb curated category or tags: c, cli, data, library.
- [serd](https://pkg.so/zh-hans/brew/serd/) - Shares pkgdb curated category or tags: c, cli, data, library.
- [libxls](https://pkg.so/zh-hans/brew/libxls/) - Shares pkgdb curated category or tags: cli, data, file-formats.
- [libesedb](https://pkg.so/zh-hans/brew/libesedb/) - Shares pkgdb curated category or tags: cli, data, file-formats.
- [parqeye](https://pkg.so/zh-hans/brew/parqeye/) - Local package facts share a topical domain. Shared terms: cli, data, file, file-formats, files.

## Combined YAML source

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