# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman 安装 mat2

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

## 安装

```sh
sudo av install brew:mat2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mat2
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mat2
```

  证据: MacPorts ports tree: multimedia/mat2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add mat2
```

  证据: Alpine Linux edge package indexes: mat2 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install mat2
```

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

- dnf (92%):

```sh
sudo dnf install mat2
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#mat2
```

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

- pacman (92%):

```sh
sudo pacman -S mat2
```

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

## 软件包事实

- **软件包键:** brew:mat2
- **软件包管理器:** Homebrew
- **版本:** 0.14.0
- **来源摘要:** Metadata anonymization toolkit
- **主页:** <https://github.com/jvoisin/mat2>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mat2 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

mat2 is the second-generation Metadata Anonymisation Toolkit: a Python library and command-line utility for removing privacy-sensitive metadata from documents, images, archives, audio, video, and office files.

### 项目历史

The README frames mat2 around a privacy threat model in which ordinary files disclose author names, companies, camera details, timestamps, and other metadata. It explicitly positions the tool as a successor to the first MAT project, thanks Google Summer of Code and Tails, and records Julien Voisin's 2018 copyright.

The public release stream includes 0.2.0 in July 2018 and later 0.14.x releases. The README describes three surfaces: the `libmat2` library, the `mat2` command-line tool, and a Dolphin service menu for KDE users.

### 采用历史

mat2 reached a broader distribution footprint than many single-purpose privacy tools because metadata stripping is useful for activists, journalists, packagers, and privacy-conscious desktop users. The batch input records packaging across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, and Nix.

The README points GUI users to Metadata Cleaner, which uses mat2 underneath. That relationship helped mat2 serve both terminal workflows and desktop privacy tooling without making the CLI carry a full GUI itself.

### 使用方式

Typical CLI usage is `mat2 file...`, which writes cleaned copies such as `myfile.cleaned.png` rather than modifying originals in place by default. The README also documents `--show` to inspect detectable metadata, `--list` for supported formats, `--inplace`, dependency checks, archive-member policy, and a lightweight mode that trades completeness for less alteration of file content.

The README is careful about limits: absence of displayed metadata is not a proof that no metadata exists, especially for complex file formats. That makes mat2 a practical minimization tool rather than a formal sanitizer.

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

mat2 matters in package collections because it wraps a lot of file-format-specific cleanup behavior behind one small CLI. Its optional dependencies such as ExifTool, FFmpeg, Poppler, librsvg, and GdkPixbuf also make it a good example of a privacy tool whose packaging quality depends on distro integration.

For security-minded users, mat2 is a useful counterweight to the default behavior of office suites, cameras, and document exporters: it makes metadata review and removal scriptable.

### 时间线

- 2018: README copyright and early releases identify mat2's public project era.
- 2018: GitHub release 0.2.0 is published.
- 2025: GitHub release 0.14.0 is published.
- 2026: The README-documented format list includes office files, images, audio/video, archives, torrents, PDFs, and web formats.

### Related projects

- The README links mat2 to the original MAT project, Metadata Cleaner, mat2-web, WordPress integrations, ExifTool, pdf-redact-tools, pdfparanoia, Scrambled Exif, and Dangerzone.

### 来源

- <https://github.com/jvoisin/mat2>
- <https://github.com/jvoisin/mat2/releases/tag/0.14.0>
- <https://github.com/jvoisin/mat2/releases/tag/0.2.0>
- <https://raw.githubusercontent.com/jvoisin/mat2/master/README.md>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - mat2 - 0.13.5-1.2: normalized package name match | Debian stable package indexes: mat2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Metadata anonymisation toolkit v2 | https://0xacab.org/jvoisin/mat2
- Nix - mat2: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mat2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mat2 - 0.13.4-2.1: normalized package name match | Ubuntu 24.04 LTS package indexes: mat2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Metadata anonymisation toolkit v2 | https://0xacab.org/jvoisin/mat2
- apk - mat2 - 0.14.0-r0: normalized package name match | Alpine Linux edge package indexes: mat2 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Metadata removal tool, supporting a wide range of commonly used file formats | https://github.com/jvoisin/mat2
- apk - mat2-doc - 0.14.0-r0: normalized package name match | Alpine Linux edge package indexes: mat2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Metadata removal tool, supporting a wide range of commonly used file formats (documentation) | https://github.com/jvoisin/mat2
- apk - mat2-pyc - 0.14.0-r0: normalized package name match | Alpine Linux edge package indexes: mat2-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for mat2 | https://github.com/jvoisin/mat2
- dnf - mat2 - 0.14.0-5.fc45: normalized package name match | Fedora Rawhide package metadata: mat2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Metadata removal tool, supporting a wide range of commonly used file formats | https://github.com/jvoisin/mat2
- dnf - mat2-dolphin - 0.14.0-5.fc45: normalized package name match | Fedora Rawhide package metadata: mat2-dolphin from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Dolphin integration for mat2 | https://github.com/jvoisin/mat2
- dnf - python3-libmat2 - 0.14.0-5.fc45: normalized package name match | Fedora Rawhide package metadata: python3-libmat2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Library for mat2 | https://github.com/jvoisin/mat2
- pacman - mat2 - 0.14.0-2: normalized package name match | Arch Linux sync databases: mat2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Metadata removal tool, supporting a wide range of commonly used file formats | https://github.com/jvoisin/mat2
- MacPorts - mat2: normalized package name match | MacPorts ports tree: multimedia/mat2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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