# 使用 Homebrew, Nix, apt, zypper 安装 libfreefare

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libfreefare
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

- Debian apt (92%):

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

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

- zypper (92%):

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

  证据: openSUSE Tumbleweed package metadata: libfreefare-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:libfreefare
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libfreefare>
- **版本:** 0.4.0
- **来源摘要:** API for MIFARE card manipulations
- **主页:** <https://github.com/nfc-tools/libfreefare>
- **仓库:** <https://github.com/nfc-tools/libfreefare>
- **许可证:** LGPL-3.0-or-later
- **源码归档:** <https://github.com/nfc-tools/libfreefare/releases/download/libfreefare-0.4.0/libfreefare-0.4.0.tar.bz2>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- 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 (别名)
- mifare-classic-read-ndef (别名)
- mifare-classic-write-ndef (别名)
- mifare-desfire-access (别名)
- mifare-desfire-create-ndef (别名)
- mifare-desfire-ev1-configure-ats (别名)
- mifare-desfire-ev1-configure-default-key (别名)
- mifare-desfire-ev1-configure-random-uid (别名)
- mifare-desfire-format (别名)
- mifare-desfire-info (别名)
- mifare-desfire-read-ndef (别名)
- mifare-desfire-write-ndef (别名)
- mifare-ultralight-info (别名)

## 依赖

- libnfc
- libusb-compat
- openssl@3

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.4.0
- 本地数据: OK
- 上游仓库: https://github.com/nfc-tools/libfreefare
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

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

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

- 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.7: normalized package name match | openSUSE Tumbleweed package metadata: libfreefare-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for the Mifare card manipulation library | https://github.com/nfc-tools/libfreefare/
- zypper - libfreefare-tools - 0.4.0-5.7: normalized package name match | openSUSE Tumbleweed package metadata: libfreefare-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tools for Mifare cards | https://github.com/nfc-tools/libfreefare/
- zypper - libfreefare0 - 0.4.0-5.7: normalized package name match | openSUSE Tumbleweed package metadata: libfreefare0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Library for Mifare card manipulations | https://github.com/nfc-tools/libfreefare/


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [libusb-compat](https://pkg.so/zh-hans/brew/libusb-compat/) - Runtime dependency declared by Homebrew.
- [libnfc](https://pkg.so/zh-hans/brew/libnfc/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libfreenect](https://pkg.so/zh-hans/brew/libfreenect/) - Shares pkgdb curated category or tags: c-library, cli, hardware, system.
- [libevdev](https://pkg.so/zh-hans/brew/libevdev/) - Shares pkgdb curated category or tags: c-library, cli, hardware, system.
- [nvtop](https://pkg.so/zh-hans/brew/nvtop/) - Shares pkgdb curated category or tags: cli, hardware, system.
- [lsusb](https://pkg.so/zh-hans/brew/lsusb/) - Shares pkgdb curated category or tags: cli, hardware, system.
- [sane-backends](https://pkg.so/zh-hans/brew/sane-backends/) - Shares pkgdb curated category or tags: cli, hardware, system.
- [cyme](https://pkg.so/zh-hans/brew/cyme/) - Shares pkgdb curated category or tags: cli, hardware, system.
- [liquidctl](https://pkg.so/zh-hans/brew/liquidctl/) - Shares pkgdb curated category or tags: cli, hardware, system.
- [dwarfs](https://pkg.so/zh-hans/brew/dwarfs/) - Local package facts share a topical domain. Shared terms: cli, openssl, openssl-3, read, system.
- [node-hid](https://pkg.so/zh-hans/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/mxcl/pkgdb/blob/main/combined/libfreefare.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
