# Install libfreefare with Homebrew, apt, Nix, zypper

API for MIFARE card manipulations. Version 0.4.0 via Homebrew; verified 2026-06-19.

## Install

```sh
sudo av install brew:libfreefare
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libfreefare
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install libfreefare-bin
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#libfreefare
```

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

- zypper (92%):

```sh
sudo zypper install libfreefare-devel
```

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

## Package facts

- **Package key:** brew:libfreefare
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libfreefare>
- **Version:** 0.4.0
- **Source summary:** API for MIFARE card manipulations
- **Homepage:** <https://github.com/nfc-tools/libfreefare>
- **Repository:** <https://github.com/nfc-tools/libfreefare>
- **Upstream docs:** <https://github.com/nfc-tools/libfreefare#readme>
- **License:** LGPL-3.0-or-later
- **Source archive:** <https://github.com/nfc-tools/libfreefare/releases/download/libfreefare-0.4.0/libfreefare-0.4.0.tar.bz2>
- **Last updated:** 2026-06-19T12:31:50-07:00
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- mifare-classic-format (cli)
- mifare-classic-read-ndef (cli)
- mifare-classic-write-ndef (cli)
- mifare-desfire-access (cli)
- mifare-desfire-create-ndef (cli)
- mifare-desfire-ev1-configure-ats (cli)
- mifare-desfire-ev1-configure-default-key (cli)
- mifare-desfire-ev1-configure-random-uid (cli)
- mifare-desfire-format (cli)
- mifare-desfire-info (cli)
- mifare-desfire-read-ndef (cli)
- mifare-desfire-write-ndef (cli)
- mifare-ultralight-info (cli)
- mifare-classic-format (alias)
- mifare-classic-read-ndef (alias)
- mifare-classic-write-ndef (alias)
- mifare-desfire-access (alias)
- mifare-desfire-create-ndef (alias)
- mifare-desfire-ev1-configure-ats (alias)
- mifare-desfire-ev1-configure-default-key (alias)
- mifare-desfire-ev1-configure-random-uid (alias)
- mifare-desfire-format (alias)
- mifare-desfire-info (alias)
- mifare-desfire-read-ndef (alias)
- mifare-desfire-write-ndef (alias)
- mifare-ultralight-info (alias)

## Dependencies

- libnfc
- libusb-compat
- openssl@3

## Build dependencies

- pkgconf

## 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, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 0.4.0
- Package-manager updated: 2026-06-19
- Local data: ok
- Upstream repository: https://github.com/nfc-tools/libfreefare
- info: No cached GitHub release or tag data was available.
## Project history and usage

libfreefare is the nfc-tools library that raises libnfc from raw NFC reader access to convenience APIs and command-line tools for MIFARE and related RFID/NFC tags.

### Project history

The project sits in the nfc-tools family and is described by its project page as an API for RFID card manipulation on top of libnfc. Its README narrows that role to MIFARE card manipulation and lists libnfc, autotools, and OpenSSL as build dependencies for Unix-like systems.

The public feature matrix documents support for common card families including FeliCa Lite, MIFARE Classic, MIFARE DESFire, MIFARE Ultralight, NTAG21x, and MIFARE Application Directory specifications. GitHub release metadata records libfreefare-0.4.0 on 2015-05-13.

### Adoption history

libfreefare became useful where libnfc users wanted reusable C calls and bundled utilities instead of writing card-format details directly against the lower-level NFC stack. Its packaging across Homebrew, Debian, Ubuntu, Nix, and openSUSE reflects a small but durable audience around NFC labs, access-card tooling, and embedded experiments.

### How it is used

The package installs a C library plus utilities for formatting, inspecting, and reading or writing NDEF data on MIFARE Classic, DESFire, and Ultralight cards. It is typically used with NFC readers supported by libnfc.

### Why package nerds care

For package maintainers, libfreefare is a good example of a narrow hardware-adjacent library whose value comes from keeping protocol-specific card operations out of downstream applications. It also exposes the usual packaging concerns around libnfc ABI compatibility, OpenSSL linkage, and shipping command-line helpers with the library.

### Timeline

- 2013-12-04: The commit tagged libfreefare-0.4.0 updated the project changelog for the 0.4.0 release.
- 2015-05-13: GitHub release metadata records libfreefare-0.4.0.
- 2015: The nfc-tools project page documents libfreefare as part of the nfc-tools project set.

### Related projects

- libnfc supplies the lower-level NFC reader interface used by libfreefare.
- Other nfc-tools projects such as mfoc, mfcuk, libllcp, and nfcutils occupy adjacent NFC tooling niches.

### Sources

- <https://api.github.com/repos/nfc-tools/libfreefare/commits/530ccbc19309c8ab2b8160c2b57fefd747321d04>
- <https://api.github.com/repos/nfc-tools/libfreefare/releases?per_page=100>
- <https://github.com/nfc-tools/libfreefare>
- <https://nfc-tools.github.io/projects/libfreefare/>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libfreefare
- **Version Scheme:** 0
- **Revision:** 4
- **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 - libfreefare-bin - 0.4.0-2.3+b1: normalized package name match | Debian stable package indexes: libfreefare-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MIFARE card manipulations binaries | https://code.google.com/p/libfreefare/
- Debian apt - libfreefare-dev - 0.4.0-2.3+b1: normalized package name match | Debian stable package indexes: libfreefare-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MIFARE card manipulations library (development files) | https://code.google.com/p/libfreefare/
- Debian apt - libfreefare-doc - 0.4.0-2.3: normalized package name match | Debian stable package indexes: libfreefare-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | documentation for libfreefare | https://code.google.com/p/libfreefare/
- Debian apt - libfreefare0t64 - 0.4.0-2.3+b1: normalized package name match | Debian stable package indexes: libfreefare0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MIFARE card manipulations library | https://code.google.com/p/libfreefare/
- Nix - libfreefare: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libfreefare/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libfreefare-bin - 0.4.0-2.3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libfreefare-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MIFARE card manipulations binaries | https://code.google.com/p/libfreefare/
- Ubuntu apt - libfreefare-dev - 0.4.0-2.3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libfreefare-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MIFARE card manipulations library (development files) | https://code.google.com/p/libfreefare/
- Ubuntu apt - libfreefare-doc - 0.4.0-2.3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libfreefare-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | documentation for libfreefare | https://code.google.com/p/libfreefare/
- Ubuntu apt - libfreefare0t64 - 0.4.0-2.3build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libfreefare0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | MIFARE card manipulations library | https://code.google.com/p/libfreefare/
- zypper - libfreefare-devel - 0.4.0-5.5: normalized package name match | openSUSE Tumbleweed package metadata: libfreefare-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for the Mifare card manipulation library | https://github.com/nfc-tools/libfreefare/
- zypper - libfreefare-tools - 0.4.0-5.5: normalized package name match | openSUSE Tumbleweed package metadata: libfreefare-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Tools for Mifare cards | https://github.com/nfc-tools/libfreefare/
- zypper - libfreefare0 - 0.4.0-5.5: normalized package name match | openSUSE Tumbleweed package metadata: libfreefare0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Library for Mifare card manipulations | https://github.com/nfc-tools/libfreefare/


## 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.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [libnfc](https://www.automicvault.com/pkg/brew/libnfc/) - Runtime dependency declared by Homebrew.
- [libusb-compat](https://www.automicvault.com/pkg/brew/libusb-compat/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libevdev](https://www.automicvault.com/pkg/brew/libevdev/) - Shares av.db curated category or tags: c-library, cli, hardware, system.
- [libfreenect](https://www.automicvault.com/pkg/brew/libfreenect/) - Shares av.db curated category or tags: c-library, cli, hardware, system.
- [cyme](https://www.automicvault.com/pkg/brew/cyme/) - Shares av.db curated category or tags: cli, hardware, system.
- [dcled](https://www.automicvault.com/pkg/brew/dcled/) - Shares av.db curated category or tags: cli, hardware, system.
- [digitemp](https://www.automicvault.com/pkg/brew/digitemp/) - Shares av.db curated category or tags: cli, hardware, system.
- [dpcmd](https://www.automicvault.com/pkg/brew/dpcmd/) - Shares av.db curated category or tags: cli, hardware, system.
- [framework-tool-tui](https://www.automicvault.com/pkg/brew/framework-tool-tui/) - Shares av.db curated category or tags: cli, hardware, system.
- [garmintools](https://www.automicvault.com/pkg/brew/garmintools/) - Shares av.db curated category or tags: cli, hardware, system.
- [dwarfs](https://www.automicvault.com/pkg/brew/dwarfs/) - Local package facts share a topical domain. Shared terms: cli, openssl, openssl-3, read, system.
- [node-hid](https://www.automicvault.com/pkg/npm/node-hid/) - Local package facts share a topical domain. Shared terms: access, api, cli, hardware, system.

## Combined YAML source

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