# 使用 Homebrew, apk, Nix 安装 openvi

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

## 安装

```sh
sudo av install brew:openvi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install openvi
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add openvi
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#openvi
```

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

## 软件包事实

- **软件包键:** brew:openvi
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/openvi>
- **版本:** 7.9.33
- **来源摘要:** Portable OpenBSD vi for UNIX systems
- **主页:** <https://github.com/johnsonjh/OpenVi>
- **仓库:** <https://github.com/johnsonjh/OpenVi>
- **上游文档:** <https://github.com/johnsonjh/OpenVi#readme>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/johnsonjh/OpenVi/archive/refs/tags/7.9.33.tar.gz>
- **最后更新:** 2026-06-25T04:20:44Z
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- oex (cli)
- ovi (cli)
- oview (cli)
- oex (别名)
- ovi (别名)
- oview (别名)

## 依赖

- ncurses

## 构建依赖

- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 7.9.33
- 管理器更新时间: 2026-06-25
- 本地数据: OK
- 上游仓库: https://github.com/johnsonjh/OpenVi
- 检测到的最新版本: 7.9.33 (当前)
## 项目历史与用法

OpenVi is a portable packaging of the OpenBSD vi/ex editor for Unix-like systems outside OpenBSD. Its significance is preservation and portability rather than a new editor model: it gives package users a small BSD-licensed vi derived from OpenBSD base-system code.

### 项目历史

The OpenVi README describes the project as a fork of the vi/ex editor included with OpenBSD. That editor descends from nvi 1.79, the Berkeley ex/vi reimplementation associated with Keith Bostic, Sven Verdoolaege, and other CSRG contributors, and nvi itself traces back through Steve Kirkendall's Elvis editor.

OpenVi follows the common OpenBSD-portable pattern: take audited base-system code, add portability glue, and make it build on other Unix systems. Its README emphasizes readable code, secure C library idioms such as strlcpy, snprintf, mkstemp, and pledge where available, and a permissive BSD/ISC licensing mix.

### 采用历史

OpenVi's adoption footprint is niche. It is packaged by Homebrew, Alpine, and Nix for users who want OpenBSD's vi behavior without installing OpenBSD, but it does not appear to be a general editor ecosystem on the scale of Vim, Neovim, or nvi2.

Its most natural audience is package minimalists, BSD users working on non-BSD hosts, and developers who want a small vi with OpenBSD ancestry rather than plugin systems, scripting runtimes, or GUI layers.

### 使用方式

The package installs ovi, oex, and oview so users can edit files, run ex commands, and inspect files with a vi-family tool. It is useful in lightweight shell environments, recovery setups, containers, and systems where a traditional vi is wanted with few moving parts.

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

OpenVi is interesting because it packages a lineage rather than a feature race: Berkeley vi to nvi to OpenBSD vi to a portable downstream. For package nerds, that makes it a compact case study in base-system code being exported into package-manager space.

### 时间线

- 1996: nvi 1.79 becomes the ancestor named by the OpenVi README for OpenBSD vi.
- 2020s: OpenVi is distributed as a portable OpenBSD vi for Unix-like systems and appears in package managers including Homebrew, Alpine, and Nix.
- 2026: Homebrew packages OpenVi 7.7.32 with ovi, oex, and oview.

### Related projects

- OpenVi is related to OpenBSD vi, nvi, nvi2, Elvis, Vim, Neovim, and other small Unix editor ports that preserve traditional ex/vi behavior.

### 来源

- <https://formulae.brew.sh/formula/openvi>
- <https://github.com/johnsonjh/OpenVi>
- <https://github.com/lacamera/nvi>
- <https://man.openbsd.org/vi>
- source_facts.brew:openvi


## 安全说明

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:** openvi
- **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 - openvi: normalized package name match | nixpkgs package indexes: pkgs/by-name/op/openvi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - openvi - 7.7.32-r0: normalized package name match | Alpine Linux edge package indexes: openvi from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OpenVi is a fork of the vi / ex editor included with OpenBSD | https://github.com/johnsonjh/OpenVi
- apk - openvi-doc - 7.7.32-r0: normalized package name match | Alpine Linux edge package indexes: openvi-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OpenVi is a fork of the vi / ex editor included with OpenBSD (documentation) | https://github.com/johnsonjh/OpenVi


## 相关链接

- [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.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [ncurses](https://www.automicvault.com/zh-hans/pkg/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ad](https://www.automicvault.com/zh-hans/pkg/brew/ad/) - Shares av.db curated category or tags: cli, productivity, text-editor, vi.
- [amp](https://www.automicvault.com/zh-hans/pkg/brew/amp/) - Shares av.db curated category or tags: cli, productivity, text-editor.
- [emacs](https://www.automicvault.com/zh-hans/pkg/brew/emacs/) - Shares av.db curated category or tags: cli, productivity, text-editor.
- [enter-tex](https://www.automicvault.com/zh-hans/pkg/brew/enter-tex/) - Shares av.db curated category or tags: cli, productivity, text-editor.
- [gedit](https://www.automicvault.com/zh-hans/pkg/brew/gedit/) - Shares av.db curated category or tags: cli, productivity, text-editor.
- [jupp](https://www.automicvault.com/zh-hans/pkg/brew/jupp/) - Shares av.db curated category or tags: cli, productivity, text-editor.
- [kibi](https://www.automicvault.com/zh-hans/pkg/brew/kibi/) - Shares av.db curated category or tags: cli, productivity, text-editor.
- [jove](https://www.automicvault.com/zh-hans/pkg/brew/jove/) - Shares av.db curated category or tags: cli, productivity, text-editor, unix.
- [le](https://www.automicvault.com/zh-hans/pkg/brew/le/) - Local package facts share a topical domain. Shared terms: cli, editor, productivity, text, text-editor.

## Combined YAML source

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