# Install mat2 with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman

Metadata anonymization toolkit. Version 0.14.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mat2
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mat2
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

- Nix (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:mat2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mat2>
- **Version:** 0.14.0
- **Source summary:** Metadata anonymization toolkit
- **Homepage:** <https://github.com/jvoisin/mat2>
- **Repository:** <https://github.com/jvoisin/mat2>
- **Upstream docs:** <https://github.com/jvoisin/mat2#readme>
- **License:** LGPL-3.0-or-later
- **Source archive:** <https://files.pythonhosted.org/packages/ba/e1/9a8abf4f5ab3c3e214197e310e3f33418d79769ee89911da939a6c891d4f/mat2-0.14.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- mat2 (cli)
- mat2 (alias)

## Dependencies

- exiftool
- ffmpeg
- gdk-pixbuf
- librsvg
- poppler
- py3cairo
- pygobject3
- python@3.14

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.14.0
- Local data: ok
- Upstream repository: https://github.com/jvoisin/mat2
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mat2
- **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

## Other Package-Manager Records

- 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-4.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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-4.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Dolphin integration for mat2 | https://github.com/jvoisin/mat2
- dnf - python3-libmat2 - 0.14.0-4.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [exiftool](https://www.automicvault.com/pkg/brew/exiftool/) - Runtime dependency declared by Homebrew.
- [ffmpeg](https://www.automicvault.com/pkg/brew/ffmpeg/) - Runtime dependency declared by Homebrew.
- [gdk-pixbuf](https://www.automicvault.com/pkg/brew/gdk-pixbuf/) - Runtime dependency declared by Homebrew.
- [librsvg](https://www.automicvault.com/pkg/brew/librsvg/) - Runtime dependency declared by Homebrew.
- [poppler](https://www.automicvault.com/pkg/brew/poppler/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [hblock](https://www.automicvault.com/pkg/brew/hblock/) - Shares av.db curated category or tags: cli, privacy, security.
- [libotr](https://www.automicvault.com/pkg/brew/libotr/) - Shares av.db curated category or tags: cli, privacy, security.
- [c2patool](https://www.automicvault.com/pkg/brew/c2patool/) - Shares av.db curated category or tags: cli, metadata, security.
- [vexctl](https://www.automicvault.com/pkg/brew/vexctl/) - Shares av.db curated category or tags: cli, metadata, security.
- [cryfs](https://www.automicvault.com/pkg/brew/cryfs/) - Shares av.db curated category or tags: cli, privacy, security.
- [killswitch](https://www.automicvault.com/pkg/brew/killswitch/) - Shares av.db curated category or tags: cli, privacy, security.
- [monero](https://www.automicvault.com/pkg/brew/monero/) - Shares av.db curated category or tags: cli, privacy, security.
- [acme.sh](https://www.automicvault.com/pkg/brew/acme-sh/) - Shares av.db curated category or tags: cli, security.
- [apkleaks](https://www.automicvault.com/pkg/brew/apkleaks/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, file, python, python-3-14, security.
- [pdfalyzer](https://www.automicvault.com/pkg/brew/pdfalyzer/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, python, python-3-14, security, toolkit.
- [arjun](https://www.automicvault.com/pkg/brew/arjun/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, python, python-3-14, security.

## Combined YAML source

View the package source record on GitHub. [combined/mat2.yml](https://github.com/automic-vault/db/blob/main/combined/mat2.yml)


## Sources

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