# 使用 Homebrew, winget 安装 lief-patchelf

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

## 安装

```sh
sudo av install brew:lief-patchelf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lief-patchelf
```

  证据: local Homebrew formula metadata

### Windows

- winget (92%):

```sh
winget install --id lief-project.lief-patchelf -e
```

  证据: Windows Package Manager source index: lief-project.lief-patchelf from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:lief-patchelf
- **软件包管理器:** Homebrew
- **版本:** 1.0.0
- **来源摘要:** Robust, modern reimplementation of patchelf based on the LIEF
- **主页:** <https://lief.re/doc/latest/tools/lief-patchelf/index.html>
- **仓库:** <https://github.com/lief-project/LIEF>
- **最后更新:** 2026-07-27T02:32:46Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lief-patchelf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

lief-patchelf is LIEF's Rust-based reimplementation of NixOS patchelf, a command-line utility for modifying properties of ELF executables and shared libraries. It intentionally preserves the original tool's command-line interface.

### 项目历史

The LIEF project introduced lief-patchelf in July 2025 as a more robust, modern, and maintainable implementation built on LIEF's binary-parsing and rewriting facilities. The tool lives inside the broader LIEF repository rather than as a separate upstream project.

### 采用历史

Compatibility with the original NixOS patchelf command line is intended to make substitution straightforward. The supplied package record shows lief-patchelf as a standalone Homebrew formula, while the official documentation also supports building it directly with Cargo.

### 使用方式

Users employ lief-patchelf through the familiar patchelf-style CLI to alter ELF metadata. The binary can also generate its own man page and completion scripts for bash, elvish, fish, PowerShell, and zsh.

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

patchelf is a foundational packaging utility for repairing interpreter and runtime-library paths in prebuilt ELF software. lief-patchelf is significant because it offers a compatible implementation based on a cross-platform binary-instrumentation library and a Rust CLI, while remaining installable as its own package.

### 时间线

- 2025: LIEF added lief-patchelf on July 12 as a LIEF-based implementation of NixOS patchelf.
- 2026: LIEF 1.0.0 was released on July 12 with lief-patchelf included in the official tool documentation.

### Related projects

- NixOS/patchelf is the original implementation whose command-line interface lief-patchelf preserves.
- LIEF provides the executable-format parsing and modification foundation used by lief-patchelf.

### 来源

- <https://github.com/lief-project/LIEF/commit/7fce27408ad8ccef9ab10c3b324c556a018b349d>
- <https://github.com/lief-project/LIEF/releases/tag/1.0.0>
- <https://lief.re/doc/latest/tools/lief-patchelf/index.html>
- source_facts.package-manager


## 安全说明

没有找到 lief-patchelf 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- winget - lief-project.lief-patchelf: normalized package name match | Windows Package Manager source index: lief-project.lief-patchelf from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/lief-patchelf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/lief-patchelf.yml)


## 来源

- pkg.so package database
- curated package history
- external package-manager database matches
- cross-ecosystem install command graph
