macOS
brew install lnavlocal Homebrew formula metadata
sudo port install lnavMacPorts ports tree · sysutils/lnav/Portfile · 来源: api.github.com
安装
brew install lnavlocal Homebrew formula metadata
sudo port install lnavMacPorts ports tree · sysutils/lnav/Portfile · 来源: api.github.com
sudo apk add lnavAlpine Linux edge package indexes · lnav · 来源: dl-cdn.alpinelinux.org
sudo dnf install lnavFedora Rawhide package metadata · lnav · 来源: dl.fedoraproject.org
nix profile install nixpkgs#lnavnixpkgs package indexes · pkgs/by-name/ln/lnav/package.nix · 来源: api.github.com
sudo pacman -S lnavArch Linux sync databases · lnav · 来源: geo.mirror.pkgbuild.com
sudo zypper install lnavopenSUSE Tumbleweed package metadata · lnav · 来源: download.opensuse.org
scoop install main/lnavScoop official bucket manifest trees · bucket/lnav.json · 来源: api.github.com
winget install --id tstack.lnav -eWindows 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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
~/.lnav/config.json~/.config/lnav/config.json/etc/lnav/configs/*/*.json/etc/lnav/formats/*/config.*.json可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
lnav | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 依赖 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lnav |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
lnav 0.12.4-1+deb13u1
ncurses-based log file viewer
sudo apt install lnavlnav
nix profile install nixpkgs#lnavlnav 0.11.2-1build3
ncurses-based log file viewer
sudo apt install lnavlnav 0.14.0-r0
Advanced log file navigator and viewer
sudo apk add lnavlnav-doc 0.14.0-r0
Advanced log file navigator and viewer (documentation)
sudo apk add lnav-doclnav 0.14.0-1.fc45
Curses-based tool for viewing and analyzing log files
sudo dnf install lnavlnav 0.14.0-1
A curses-based tool for viewing and analyzing log files
sudo pacman -S lnavlnav 0.14.0-1.2
Logfile Navigator
sudo zypper install lnavlnav
sudo port install lnavmain/lnav
scoop install main/lnavtstack.lnav
winget install --id tstack.lnav -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.