# 使用 Homebrew, MacPorts, Nix 安装 bed

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

## 安装

```sh
sudo av install brew:bed
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bed
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bed
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bed
```

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

## 软件包事实

- **软件包键:** brew:bed
- **软件包管理器:** Homebrew
- **版本:** 0.2.8
- **来源摘要:** Binary editor written in Go
- **主页:** <https://github.com/itchyny/bed>
- **仓库:** <https://github.com/itchyny/bed>
- **最后更新:** 2026-07-26T10:56:32+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bed (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

bed is a terminal binary editor written in Go, aimed at fast portable editing of binary files with a Vim-like interface.

### 项目历史

The project was created by itchyny and its repository was opened in April 2018. The README frames the project as both a practical binary editor and an exploration of how to handle large files interactively in Go.

Its upstream releases show a compact CLI tool that has remained active through the 2020s, with v0.1.0 published in January 2020 and v0.2.8 published in December 2024.

### 采用历史

The package is distributed through Homebrew, MacPorts, and Nix according to the supplied package metadata, which is typical for a niche but useful terminal utility.

### 使用方式

bed is used for byte-level inspection and editing in a terminal. The README lists large-file support, split windows, search, undo and redo, partial writing, and Vim-influenced commands.

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

For package collectors, bed is a small example of the modern Go CLI pattern: a single portable executable providing an old Unix workstation tool category, the hex/binary editor, with familiar modal-editor ergonomics.

### 时间线

- 2018: GitHub repository created.
- 2020: v0.1.0 release published.
- 2024: v0.2.8 release published.

### Related projects

- Related package categories include hex editors, binary viewers, and Vim-style terminal editing tools.

### 来源

- <https://api.github.com/repos/itchyny/bed>
- <https://github.com/itchyny/bed#readme>
- <https://github.com/itchyny/bed/releases>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Nix - bed: normalized package name match | nixpkgs package indexes: pkgs/by-name/be/bed/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - bed: normalized package name match | MacPorts ports tree: sysutils/bed/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/bed.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bed.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
