# Install tnef with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Microsoft MS-TNEF attachment unpacker. Version 1.4.18 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:tnef
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tnef
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tnef
```

  Evidence: MacPorts ports tree: textproc/tnef/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add tnef
```

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

- Debian apt (92%):

```sh
sudo apt install tnef
```

  Evidence: Debian stable package indexes: tnef from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install tnef
```

  Evidence: Fedora Rawhide package metadata: tnef 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#tnef
```

  Evidence: nixpkgs package indexes: pkgs/by-name/tn/tnef/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install tnef
```

  Evidence: openSUSE Tumbleweed package metadata: tnef from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:tnef
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/tnef>
- **Version:** 1.4.18
- **Source summary:** Microsoft MS-TNEF attachment unpacker
- **Homepage:** <https://github.com/verdammelt/tnef>
- **Repository:** <https://github.com/verdammelt/tnef>
- **Upstream docs:** <https://github.com/verdammelt/tnef#readme>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://github.com/verdammelt/tnef/archive/refs/tags/1.4.18.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- tnef (cli)
- tnef (alias)

## Build dependencies

- autoconf
- automake
- libtool

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.4.18
- Local data: ok
- Upstream repository: https://github.com/verdammelt/tnef
- Upstream latest detected: 1.4.18 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

TNEF is a small Unix command-line utility for unpacking Microsoft Transport Neutral Encapsulation Format attachments, commonly encountered as `application/ms-tnef` or `winmail.dat` files from Outlook and Exchange environments.

### Project history

The project history is unusually well preserved in its NEWS file. It began with a 0.6 first public release, reached 1.0 with MAPI attribute parsing and long filename support, and then accumulated the practical fixes expected of a mail-attachment unpacker: safer path handling, tar-like command options, automated tests, NetBSD and big-endian portability, Mac OS X configuration fixes, MIME type listing, RTF body saving, Unicode handling, and memory/security hardening.

Development reflects the long tail of interoperability with proprietary mail formats. The README explains the reason for the tool: Outlook and Exchange caused more mail to be wrapped in Microsoft's TNEF format, and this program let users extract attachments without needing Microsoft Outlook. Later NEWS entries show maintenance around Unicode filenames, multi-value MAPI attributes, allocator hardening, integer overflow checks, null pointer avoidance, and malicious input handling.

### Adoption history

TNEF became a classic packaging target because it solves a small but recurring system-administration problem. The supplied package facts list Homebrew, Debian, Ubuntu, Alpine, Fedora/DNF, MacPorts, Nix, and openSUSE/Zypper packaging, showing that it is carried broadly despite its narrow scope.

The README says it is mainly tested and used on GNU/Linux and Cygwin and should work on other Unix-like systems. That portability claim matches its package footprint: it is the kind of single-purpose C utility that distributions keep available so mail clients, scripts, and users can recover attachments from Microsoft-heavy environments.

### How it is used

Users run `tnef` against a TNEF attachment to list or extract embedded files, message bodies, MIME types, or RTF data depending on options. Its normal role is not a daemon or workflow manager but a rescue utility for mail attachments that arrived in a Microsoft-only wrapper.

The project is especially useful in mixed Unix/Windows organizations, where a developer, sysadmin, or mail user may receive an attachment that is unreadable in a standard Unix mail client.

### Why package nerds care

For package nerds, TNEF is a good example of a tiny utility that earns wide distribution packaging because it removes friction at an old interoperability boundary. It is not glamorous, but it turns a proprietary mail wrapper into ordinary files using normal Unix command-line patterns.

Its NEWS file is also a reminder that small parsers for hostile or malformed file formats need maintenance: many later releases are about bounds checks, overflows, Unicode edge cases, and safer extraction behavior.

### Timeline

- 0.6: First public release.
- 1.0: Added MAPI attribute parsing and long filename support.
- 2003: 1.2.2 added `--maxsize` for protection against hostile TNEF files.
- 2006: 1.3.3 added message body saving and Unicode handling.
- 2011: 1.4.8 switched to Git.
- 2017: 1.4.13 fixed security issues reported by external researchers.
- 2019: 1.4.18 improved strdup safety and corrected a bit-shift issue.

### Related projects

- Related to Unix mail clients and scripts that need to recover files from Outlook/Exchange `winmail.dat` attachments.
- Adjacent to other TNEF/MAPI parsers, but this package is the long-standing command-line unpacker distributed by Unix package managers.

### Sources

- <https://github.com/verdammelt/tnef#readme>
- <https://github.com/verdammelt/tnef/blob/master/ChangeLog>
- <https://github.com/verdammelt/tnef/blob/master/NEWS>
- input 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:** tnef
- **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 - tnef - 1.4.18-4: normalized package name match | Debian stable package indexes: tnef from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tool to unpack MIME application/ms-tnef attachments | https://github.com/verdammelt/tnef
- Nix - tnef: normalized package name match | nixpkgs package indexes: pkgs/by-name/tn/tnef/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - tnef - 1.4.18-3: normalized package name match | Ubuntu 24.04 LTS package indexes: tnef from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tool to unpack MIME application/ms-tnef attachments | https://github.com/verdammelt/tnef
- apk - tnef - 1.4.18-r0: normalized package name match | Alpine Linux edge package indexes: tnef from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Program for unpacking ms-tnef MIME attachment | https://github.com/verdammelt/tnef
- apk - tnef-doc - 1.4.18-r0: normalized package name match | Alpine Linux edge package indexes: tnef-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Program for unpacking ms-tnef MIME attachment (documentation) | https://github.com/verdammelt/tnef
- dnf - tnef - 1.4.18-17.fc45: normalized package name match | Fedora Rawhide package metadata: tnef from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Extract files from email attachments like WINMAIL.DAT | https://github.com/verdammelt/tnef
- dnf - tnef-dolphin - 1.4.18-17.fc45: normalized package name match | Fedora Rawhide package metadata: tnef-dolphin from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Provides TNEF extract extension for KDE's Dolphin file manager | https://github.com/verdammelt/tnef
- dnf - tnef-nautilus - 1.4.18-17.fc45: normalized package name match | Fedora Rawhide package metadata: tnef-nautilus from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Provides TNEF extract extension for Gnome's Nautilus file manager | https://github.com/verdammelt/tnef
- zypper - tnef - 1.4.18-4.3: normalized package name match | openSUSE Tumbleweed package metadata: tnef from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Uncompress MS-TNEF Archives | https://github.com/verdammelt/tnef
- MacPorts - tnef: normalized package name match | MacPorts ports tree: textproc/tnef/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.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [ripmime](https://www.automicvault.com/pkg/brew/ripmime/) - Shares av.db curated category or tags: attachments, cli, email, productivity.
- [aerc](https://www.automicvault.com/pkg/brew/aerc/) - Shares av.db curated category or tags: cli, email, productivity.
- [alot](https://www.automicvault.com/pkg/brew/alot/) - Shares av.db curated category or tags: cli, email, productivity.
- [alpine](https://www.automicvault.com/pkg/brew/alpine/) - Shares av.db curated category or tags: cli, email, productivity.
- [extract_url](https://www.automicvault.com/pkg/brew/extract-url/) - Shares av.db curated category or tags: cli, email, productivity.
- [gmailctl](https://www.automicvault.com/pkg/brew/gmailctl/) - Shares av.db curated category or tags: cli, email, productivity.
- [himalaya](https://www.automicvault.com/pkg/brew/himalaya/) - Shares av.db curated category or tags: cli, email, productivity.
- [lbdb](https://www.automicvault.com/pkg/brew/lbdb/) - Shares av.db curated category or tags: cli, email, productivity.
- [urlscan](https://www.automicvault.com/pkg/brew/urlscan/) - Local package facts share a topical domain. Shared terms: cli, email, file, productivity.

## Combined YAML source

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