# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bed>
- **版本:** 0.2.8
- **来源摘要:** Binary editor written in Go
- **主页:** <https://github.com/itchyny/bed>
- **仓库:** <https://github.com/itchyny/bed>
- **上游文档:** <https://github.com/itchyny/bed#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/itchyny/bed/archive/refs/tags/v0.2.8.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- bed (cli)
- bed (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.2.8
- 本地数据: OK
- 上游仓库: https://github.com/itchyny/bed
- 检测到的最新版本: v0.2.8 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bed
- **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

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

- 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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [aurora](https://www.automicvault.com/zh-hans/pkg/brew/aurora/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [bbe](https://www.automicvault.com/zh-hans/pkg/brew/bbe/) - Shares av.db curated category or tags: binary-editor, cli, developer-tools.
- [bvi](https://www.automicvault.com/zh-hans/pkg/brew/bvi/) - Shares av.db curated category or tags: binary-editor, cli, developer-tools.
- [cascadia](https://www.automicvault.com/zh-hans/pkg/brew/cascadia/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [cassowary](https://www.automicvault.com/zh-hans/pkg/brew/cassowary/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [ccat](https://www.automicvault.com/zh-hans/pkg/brew/ccat/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [changie](https://www.automicvault.com/zh-hans/pkg/brew/changie/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [cheat](https://www.automicvault.com/zh-hans/pkg/brew/cheat/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [gat](https://www.automicvault.com/zh-hans/pkg/brew/gat/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, go, written.
- [go-statik](https://www.automicvault.com/zh-hans/pkg/brew/go-statik/) - Both packages touch the same language runtime or ecosystem. Shared terms: binary, cli, developer, developer-tools, go.

## Combined YAML source

View the package source record on GitHub. [combined/bed.yml](https://github.com/automic-vault/db/blob/main/combined/bed.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
