# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 1.3.1
- **来源摘要:** Library and utility to talk to iBoot/iBSS via USB
- **主页:** <https://www.libimobiledevice.org/>
- **仓库:** <https://github.com/libimobiledevice/libirecovery>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- irecovery (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.3.1
## 项目历史与用法

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

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

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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
