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

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

## 安装

```sh
sudo av install brew:libirecovery
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libirecovery
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libirecovery
```

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

### Linux

- apk (92%):

```sh
sudo apk add libirecovery
```

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

- dnf (92%):

```sh
sudo dnf install libirecovery
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#libirecovery
```

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

- Debian apt (92%):

```sh
sudo apt install irecovery
```

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

## 软件包事实

- **软件包键:** brew:libirecovery
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libirecovery>
- **版本:** 1.3.1
- **来源摘要:** Library and utility to talk to iBoot/iBSS via USB
- **主页:** <https://www.libimobiledevice.org/>
- **仓库:** <https://github.com/libimobiledevice/libirecovery>
- **上游文档:** <https://www.libimobiledevice.org/>
- **许可证:** LGPL-2.1-only
- **源码归档:** <https://github.com/libimobiledevice/libirecovery/releases/download/1.3.1/libirecovery-1.3.1.tar.bz2>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- irecovery (cli)
- irecovery (别名)

## 依赖

- libimobiledevice-glue
- libplist

## 构建依赖

- autoconf
- automake
- libtool
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

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

libirecovery is the libimobiledevice-family library and irecovery command for talking to iBoot and iBSS on Apple iOS devices over USB. It occupies the recovery-mode corner of the broader open source Apple-device stack.

### 项目历史

The README describes libirecovery as a cross-platform library for communicating with iBoot and iBSS over USB and says it is a fork of an older version from former openjailbreak.org. The project is intended for use with idevicerestore and the larger libimobiledevice project.

The repository tags show early 0.1-era tags in 2011, while the project's first 1.0.0 GitHub release was part of the June 15, 2020 libimobiledevice release round that also included idevicerestore 1.0.0 and libimobiledevice 1.3.0. Later releases continued to track Apple hardware IDs, recovery-mode behavior, and Windows and macOS build details.

### 采用历史

libirecovery is adopted mostly through restore, recovery, and device-support tooling rather than end-user applications. Its presence in Homebrew, Debian and Ubuntu as irecovery, Fedora, MacPorts, Nix, and Alpine reflects the need for a packaged recovery-mode utility in open source Apple-device workflows.

### 使用方式

The irecovery tool is used for low-level recovery-mode interaction, and the library is used by idevicerestore and related utilities that need USB communication with iBoot or iBSS. This is a lower-level workflow than ordinary device info, backup, or AFC file access through libimobiledevice.

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

For package maintainers, libirecovery is notable because it is small but version-sensitive: device databases, USB backends, readline support, libimobiledevice-glue, and idevicerestore compatibility all matter. It is the package that makes recovery-mode support available without bundling restore tooling into every consumer.

### 时间线

- 2011-03-04: The repository records a 0.1 tag-era commit for early libirecovery code.
- 2020-06-15: libirecovery 1.0.0 was announced in the libimobiledevice release round alongside idevicerestore 1.0.0.
- 2023-05-13: libirecovery 1.1.0 was published on GitHub releases.
- 2024-03-23: libirecovery 1.2.0 was published on GitHub releases.
- 2025-09-12: libirecovery 1.3.0 added iOS 1 and iOS 2 recovery-mode support and updated the device database.
- 2025-10-17: libirecovery 1.3.1 added support for M5-family devices and fixed MSVC array-initialization compatibility.

### Related projects

- Related projects include idevicerestore, libimobiledevice, libimobiledevice-glue, libusb, Apple iBoot and iBSS, and historical openjailbreak.org recovery tooling.

### 来源

- <https://github.com/libimobiledevice/libirecovery>
- <https://github.com/libimobiledevice/libirecovery/releases>
- <https://libimobiledevice.org/news/2020/06/15/release-galore/>
- <https://libimobiledevice.org/news/2025/09/12/libirecovery-1.3.0-release/>
- <https://libimobiledevice.org/news/2025/10/17/libirecovery-1.3.1-release/>
- <https://raw.githubusercontent.com/libimobiledevice/libirecovery/master/README.md>


## 安全说明

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:** libirecovery
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - irecovery - 1.2.1-1: normalized package name match | Debian stable package indexes: irecovery from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command line utility to communication with iOS recovery systems | https://www.libimobiledevice.org/
- Debian apt - libirecovery-1.0-5 - 1.2.1-1: normalized package name match | Debian stable package indexes: libirecovery-1.0-5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library allowing communication with iBoot/iBSS of iOS devices via USB | https://www.libimobiledevice.org/
- Debian apt - libirecovery-1.0-dev - 1.2.1-1: normalized package name match | Debian stable package indexes: libirecovery-1.0-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for libirecovery | https://www.libimobiledevice.org/
- Debian apt - libirecovery-common - 1.2.1-1: normalized package name match | Debian stable package indexes: libirecovery-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Common files for libirecovery | https://www.libimobiledevice.org/
- Nix - libirecovery: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libirecovery/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - irecovery - 1.0.0-5build2: normalized package name match | Ubuntu 24.04 LTS package indexes: irecovery from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command line utility to communication with iOS recovery systems | https://www.libimobiledevice.org/
- Ubuntu apt - libirecovery-1.0-3 - 1.0.0-5build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libirecovery-1.0-3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library allowing communication with iBoot/iBSS of iOS devices via USB | https://www.libimobiledevice.org/
- Ubuntu apt - libirecovery-1.0-dev - 1.0.0-5build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libirecovery-1.0-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for libirecovery | https://www.libimobiledevice.org/
- Ubuntu apt - libirecovery-common - 1.0.0-5build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libirecovery-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Common files for libirecovery | https://www.libimobiledevice.org/
- apk - libirecovery - 1.3.1-r0: normalized package name match | Alpine Linux edge package indexes: libirecovery from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Library and utility to talk to iBoot/iBSS via USB on Mac OS X, Windows, and Linux | https://libimobiledevice.org
- apk - libirecovery-dev - 1.3.1-r0: normalized package name match | Alpine Linux edge package indexes: libirecovery-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Library and utility to talk to iBoot/iBSS via USB on Mac OS X, Windows, and Linux (development files) | https://libimobiledevice.org
- apk - libirecovery-progs - 1.3.1-r0: normalized package name match | Alpine Linux edge package indexes: libirecovery-progs from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Tools that talks iPhone and iPod Touch devices' protocols on Linux | https://libimobiledevice.org
- dnf - libirecovery - 1.3.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: libirecovery from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Library and utility to talk to iBoot/iBSS via USB | https://github.com/libimobiledevice/libirecovery
- dnf - libirecovery-devel - 1.3.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: libirecovery-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for libirecovery | https://github.com/libimobiledevice/libirecovery
- dnf - libirecovery-utils - 1.3.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: libirecovery-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Utilites for libirecovery | https://github.com/libimobiledevice/libirecovery
- MacPorts - libirecovery: normalized package name match | MacPorts ports tree: devel/libirecovery/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [libplist](https://pkg.so/zh-hans/brew/libplist/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [libimobiledevice](https://pkg.so/zh-hans/brew/libimobiledevice/) - Shares the same upstream homepage.
- [libusbmuxd](https://pkg.so/zh-hans/brew/libusbmuxd/) - Shares the same upstream homepage.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Shares pkgdb curated category or tags: cli, library, system.
- [keyutils](https://pkg.so/zh-hans/brew/keyutils/) - Shares pkgdb curated category or tags: cli, library, system.
- [libzip](https://pkg.so/zh-hans/brew/libzip/) - Shares pkgdb curated category or tags: cli, library, system.
- [hwloc](https://pkg.so/zh-hans/brew/hwloc/) - Shares pkgdb curated category or tags: cli, library, system.
- [wimlib](https://pkg.so/zh-hans/brew/wimlib/) - Shares pkgdb curated category or tags: cli, library, system.
- [libxmlb](https://pkg.so/zh-hans/brew/libxmlb/) - Shares pkgdb curated category or tags: cli, library, system.
- [dfu-util](https://pkg.so/zh-hans/brew/dfu-util/) - Shares pkgdb curated category or tags: cli, system, usb.
- [ifuse](https://pkg.so/zh-hans/brew/ifuse/) - Local package facts share a topical domain. Shared terms: cli, ios, libimobiledevice, libplist, system.

## Combined YAML source

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