Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 lnav

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install lnav

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install lnav

MacPorts ports tree · sysutils/lnav/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add lnav

Alpine Linux edge package indexes · lnav · 来源: dl-cdn.alpinelinux.org

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

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

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

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

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

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

Arch Linux pacman已验证 · 92%
sudo pacman -S lnav

Arch Linux sync databases · lnav · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install lnav

openSUSE Tumbleweed package metadata · lnav · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/lnav

Scoop official bucket manifest trees · bucket/lnav.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id tstack.lnav -e

Windows Package Manager source index · tstack.lnav · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Curses-based tool for viewing and analyzing log files

历史

项目历史与用法

lnav, short for The Logfile Navigator, is a terminal log viewer that combines pager-like navigation with log-format detection, time merging, filtering, highlighting, histograms, and SQLite queries. It sits in the Unix tradition of tail, grep, and less, but packages those workflows into an interactive curses-style tool.

项目历史

The upstream GitHub repository was created in September 2009 and remains maintained by Tim Stack under the tstack/lnav project. The README presents lnav as a source repository backed by lnav.org and the Read the Docs manual, with static binaries and package-manager installation as first-class distribution channels.

Over time lnav accumulated features that moved it beyond a simple viewer: automatic decompression, format detection, chronological merge across files, follow mode for files and directories, JSON-lines pretty-printing, regex and SQLite filtering, and a SQL prompt over indexed log data. The official docs describe separate UI, command, SQLite, log-format, session, and performance sections, reflecting that growth.

采用历史

lnav has become a familiar package in Unix-like developer and operations environments because it solves a common local debugging problem without requiring a server, web UI, or log aggregation stack. The GitHub repository shows broad interest for a terminal utility, and the input package facts show distribution across Homebrew, Debian, Fedora, Nix, MacPorts, pacman, Scoop, winget, and other package managers.

The project also maintained an approachable adoption path: lnav.org offers a high-level overview and an SSH playground, while the README documents Homebrew, FreeBSD, static release binaries, and source builds. That combination made it easy for developers to try lnav during incident debugging or local log exploration.

使用方式

Typical use is to point lnav at log files or directories and let it identify, collate, and index messages. The documentation says files can be passed on the command line or opened later, directories can be monitored, archives can be extracted when libarchive support is available, and piped input can be captured.

Inside the TUI, users navigate like a pager, jump between errors, search and highlight with regular expressions, filter with expressions, inspect histograms, and run SQL queries against parsed log data. It is also commonly used with systemd by piping journalctl output into lnav.

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

lnav is significant because it is a single CLI package that absorbs a surprising amount of operational log-analysis workflow. It gives package-manager users an immediate local alternative to stitching together tail, grep, awk, less, jq, and ad hoc scripts.

For maintainers, lnav is interesting because it packages a real TUI application with many native dependencies, including SQLite, PCRE2, libarchive, compression libraries, and terminal handling. Its availability across Unix package sets and Windows package managers reflects demand for local-first log analysis.

时间线

  • 2009: The tstack/lnav GitHub repository is created.
  • 2010s: lnav grows from a terminal log viewer into a log-analysis TUI with format detection and SQL support.
  • 2020s: The project documents releases through GitHub, publishes static binaries, and maintains Read the Docs documentation.
  • 2026: The repository shows v0.14.x releases and continued development.

Related projects

  • tail, grep, less, and journalctl are common adjacent tools in the workflows lnav replaces or complements.
  • SQLite is central to lnav's analysis model because lnav exposes parsed log data through SQL.
  • Angle-grinder is named by the lnav README as another command-line log slicing and analysis tool.

安全态势

风险级别:绿色

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 元数据适用于 6 个平台目标。
  • 安装时包含 4 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.lnav/config.json~/.config/lnav/config.json/etc/lnav/configs/*/*.json/etc/lnav/formats/*/config.*.json

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://github.com/tstack/lnav

安装元数据

软件包元数据

软件包键brew:lnav
版本0.14.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/lnav
主页https://lnav.org/
仓库https://github.com/tstack/lnav
上游文档https://docs.lnav.org/en/latest
许可证BSD-2-Clause
源码归档https://github.com/tstack/lnav/releases/download/v0.14.0/lnav-0.14.0.tar.gz
最后更新2026-06-22T14:05:13-07:00
Pulseupdated
依赖libarchive, libunistring, pcre2, sqlite
构建依赖rust
macOS 提供的库bzip2, curl
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelnav
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

lnav 0.12.4-1+deb13u1

ncurses-based log file viewer

https://lnav.org

sudo apt install lnav
  • Section: admin
  • Architecture: amd64
  • 12 依赖
  • normalized package name match
  • 匹配方式:Lnav
Debian stable package indexes · deb.debian.org · Debian stable package indexes: lnav from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

lnav

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

lnav 0.11.2-1build3

ncurses-based log file viewer

https://lnav.org

sudo apt install lnav
  • Section: universe/admin
  • Architecture: amd64
  • 12 依赖
  • normalized package name match
  • 匹配方式:Lnav
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: lnav from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

lnav 0.14.0-r0

Advanced log file navigator and viewer

https://lnav.org

sudo apk add lnav
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: lnav
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Lnav
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lnav from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

lnav-doc 0.14.0-r0

Advanced log file navigator and viewer (documentation)

https://lnav.org

sudo apk add lnav-doc
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: lnav
  • normalized package name match
  • 匹配方式:Lnav
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lnav-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

lnav 0.14.0-1.fc45

Curses-based tool for viewing and analyzing log files

http://lnav.org

sudo dnf install lnav
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: lnav
  • 13 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Lnav
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: lnav from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

lnav 0.14.0-1

A curses-based tool for viewing and analyzing log files

http://lnav.org/

sudo pacman -S lnav
  • License: custom:BSD
  • Architecture: x86_64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Lnav
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: lnav from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

lnav 0.14.0-1.2

Logfile Navigator

https://lnav.org

sudo zypper install lnav
  • License: BSD-2-Clause
  • Category: System/Monitoring
  • Architecture: x86_64
  • Source Package: lnav
  • 11 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Lnav
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lnav from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

lnav

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

main/lnav

scoop install main/lnav
  • normalized package name match
  • 匹配方式:Lnav
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/lnav.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

tstack.lnav

winget install --id tstack.lnav -e
  • normalized package name match
  • 匹配方式:Lnav
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: tstack.lnav from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 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 configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment