Automic VaultAutomic Vault

brew

使用 Homebrew, apt, MacPorts, Nix, dnf 安装 nvi

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nvi

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install nvi

MacPorts ports tree · editors/nvi/Portfile · 来源: api.github.com

Linux

Debian apt已验证 · 92%
sudo apt install nvi

Debian stable package indexes · nvi · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#nvi

nixpkgs package indexes · pkgs/by-name/nv/nvi/package.nix · 来源: api.github.com

Fedora dnf已验证 · 92%
sudo dnf install nex

Fedora Rawhide package metadata · nex · 来源: dl.fedoraproject.org

概览

软件包摘要

44BSD re-implementation of vi

命令和别名

  • nex
  • nvi
  • nview

历史

项目历史与用法

nvi is the Berkeley-line reimplementation of ex/vi: a small, traditional vi rather than a Vim-family editor. In package-manager terms it is the BSD vi option people install when they want historical ex/vi behavior with nvi's later conveniences.

项目历史

The nvi source describes the editor as a reimplementation of the ex/vi editors from 4BSD. Keith Bostic's Berkeley Vi page says the source is freely available and redistributable, and lists features that distinguished nvi from old vi, including multiple edit buffers, command-line editing, path completion, tag stacks with cscope support, extended regular expressions, infinite undo, horizontal scrolling, message catalogs, and early Perl/Tcl scripting support.

The repo.or.cz README records the deeper lineage: nvi was originally derived from Steve Kirkendall's elvis vi clone, uses Henry Spencer's POSIX-style regular expression code, and retains acknowledgements to Bill Joy and Mark Horton from original vi. The maintained repo also shows ongoing maintenance by Sven Verdoolaege.

采用历史

nvi's adoption is mostly Unix/BSD preservation rather than hype-cycle growth. It appears in Homebrew, Debian, MacPorts, Nix, and related package sets as the classic 44BSD vi reimplementation, while Homebrew's formula distributes version 1.81.6 as bottled packages for macOS and Linux.

Homebrew marks the formula deprecated. That does not erase nvi's historical role, but it does show the Homebrew package has become a legacy editor package rather than an actively expanding developer-tool ecosystem.

使用方式

Users run nvi directly as `nvi`, `nex`, or `nview` for vi, ex, and read-only view workflows. Package nerds pick it for low-dependency POSIX-ish editing, scripts or muscle memory built around vi/ex behavior, and systems where Vim or Neovim would be more editor than needed.

The practical distinction is that nvi aims to preserve ex/vi semantics while adding careful terminal-era quality-of-life features. It is a good fit for editing config files, working over remote shells, and testing vi-compatible behavior.

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

nvi is significant because it carries the Berkeley vi branch into modern package managers. It is not the most popular vi implementation, but it is one of the reference points for what 'real vi' means on BSD-like systems.

Its package story is also a reminder that some important packages are maintained as infrastructure memory: small install counts, old code, and still useful when compatibility matters.

时间线

  • 4BSD era: ex/vi originated in the Berkeley Software Distribution lineage.
  • 1990s: nvi became the freely redistributable Berkeley vi reimplementation associated with Keith Bostic.
  • 2001-04-30: the repo.or.cz README revision identifies the tree as nvi 1.80-era source.
  • 2000s: repo.or.cz tags record the 1.81.x line, including nvi-1.81.6.

Related projects

  • elvis is the vi clone from which the nvi README says the project was originally derived.
  • Vim and Neovim are larger vi-family editors with much broader plugin ecosystems.
  • nvi2 is a multibyte-oriented fork of nvi.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 13 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 4 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nexcli全局可执行文件
nvicli全局可执行文件
nviewcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本1.81.6
管理器更新时间2026-06-28
本地数据OK
上游not checked
检测到的最新版本未检测到

https://repo.or.cz/nvi

安装元数据

软件包元数据

软件包键brew:nvi
版本1.81.6
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/nvi
主页https://repo.or.cz/nvi.git
仓库https://repo.or.cz/nvi.git
上游文档https://repo.or.cz/nvi.git
许可证BSD-3-Clause
源码归档https://deb.debian.org/debian/pool/main/n/nvi/nvi_1.81.6.orig.tar.gz
最后更新2026-06-28T21:02:37+01:00
Pulseupdated
依赖berkeley-db@5
构建依赖autoconf, automake, libtool, xz
macOS 提供的库ncurses
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenvi
Version Scheme0
Revision6
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedyes
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

nvi 1.81.6-23

4.4BSD re-implementation of vi

https://repo.or.cz/nvi.git

sudo apt install nvi
  • Section: editors
  • Architecture: amd64
  • 4 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nvi
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nvi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nvi-doc 1.81.6-23

4.4BSD re-implementation of vi - documentation files

https://repo.or.cz/nvi.git

sudo apt install nvi-doc
  • Section: doc
  • Architecture: all
  • Source Package: nvi
  • normalized package name match
  • 匹配方式:Nvi
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nvi-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

nvi

nix profile install nixpkgs#nvi
  • normalized package name match
  • 匹配方式:Nvi
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/nv/nvi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

nvi 1.81.6-21

4.4BSD re-implementation of vi

https://repo.or.cz/nvi.git

sudo apt install nvi
  • Section: universe/editors
  • Architecture: amd64
  • 4 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nvi
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nvi from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

nvi-doc 1.81.6-21

4.4BSD re-implementation of vi - documentation files

https://repo.or.cz/nvi.git

sudo apt install nvi-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: nvi
  • normalized package name match
  • 匹配方式:Nvi
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nvi-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
MacPorts95%

nvi

sudo port install nvi
  • normalized package name match
  • 匹配方式:Nvi
MacPorts ports tree · api.github.com · MacPorts ports tree: editors/nvi/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Debian apt92%

nex 0.0.0+git.2021.03.30.1a3320dab9-3

lexer similar to Lex/Flex - cli

https://github.com/blynn/nex

sudo apt install nex
  • Section: admin
  • Architecture: amd64
  • Source Package: golang-github-blynn-nex
  • 1 可选依赖
  • installed executable or alias match
  • 匹配方式:Nex
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

nex

nix profile install nixpkgs#nex
  • installed executable or alias match
  • 匹配方式:Nex
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ne/nex/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt92%

nex 0.0.0+git.2021.03.30.1a3320dab9-2

lexer similar to Lex/Flex - cli

https://github.com/blynn/nex

sudo apt install nex
  • Section: universe/admin
  • Architecture: amd64
  • Source Package: golang-github-blynn-nex
  • 1 可选依赖
  • installed executable or alias match
  • 匹配方式:Nex
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nex from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf92%

nex 20210330-18.fc44

A lexer generator for Go that is similar to Lex/Flex

http://www-cs-students.stanford.edu/~blynn/nex/

sudo dnf install nex
  • License: GPL-3.0-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: nex
  • 2 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Nex
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: nex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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