# Install lnav with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget

Curses-based tool for viewing and analyzing log files. Version 0.14.0 via Homebrew; verified 2026-06-22. Also installable with debian: sudo apt install lnav.

## Install

```sh
sudo av install brew:lnav
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install lnav
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lnav
```

  Evidence: MacPorts ports tree: sysutils/lnav/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add lnav
```

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

- Debian apt (92%):

```sh
sudo apt install lnav
```

  Evidence: Debian stable package indexes: lnav from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install lnav
```

  Evidence: Fedora Rawhide package metadata: lnav from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#lnav
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ln/lnav/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S lnav
```

  Evidence: Arch Linux sync databases: lnav from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install lnav
```

  Evidence: openSUSE Tumbleweed package metadata: lnav from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/lnav
```

  Evidence: Scoop official bucket manifest trees: bucket/lnav.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id tstack.lnav -e
```

  Evidence: Windows Package Manager source index: tstack.lnav from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:lnav
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/lnav>
- **Version:** 0.14.0
- **Source summary:** Curses-based tool for viewing and analyzing log files
- **Homepage:** <https://lnav.org/>
- **Repository:** <https://github.com/tstack/lnav>
- **Upstream docs:** <https://docs.lnav.org/en/latest>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/tstack/lnav/releases/download/v0.14.0/lnav-0.14.0.tar.gz>
- **Last updated:** 2026-06-22T14:05:13-07:00
- **Generated:** 2026-07-25T07:20:51+00:00

## Executables

- lnav (cli)
- lnav (alias)

## Dependencies

- libarchive
- libunistring
- pcre2
- sqlite

## Build dependencies

- rust

## Uses from macOS

- bzip2
- curl

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-25
- Package-manager version: 0.14.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/tstack/lnav
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <https://api.github.com/repos/tstack/lnav>
- <https://docs.lnav.org/en/latest/formats.html>
- <https://docs.lnav.org/en/latest/usage.html>
- <https://github.com/tstack/lnav>
- <https://lnav.org/>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## 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

- Unix: ~/.lnav/config.json, ~/.config/lnav/config.json, /etc/lnav/configs/*/*.json, /etc/lnav/formats/*/config.*.json
## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- Debian apt - lnav - 0.12.4-1+deb13u1: normalized package name match | Debian stable package indexes: lnav from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ncurses-based log file viewer | https://lnav.org
- Nix - lnav: normalized package name match | nixpkgs package indexes: pkgs/by-name/ln/lnav/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - lnav - 0.11.2-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: lnav from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ncurses-based log file viewer | https://lnav.org
- apk - lnav - 0.14.0-r0: normalized package name match | Alpine Linux edge package indexes: lnav from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Advanced log file navigator and viewer | https://lnav.org
- apk - lnav-doc - 0.14.0-r0: normalized package name match | Alpine Linux edge package indexes: lnav-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Advanced log file navigator and viewer (documentation) | https://lnav.org
- dnf - lnav - 0.14.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: lnav from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Curses-based tool for viewing and analyzing log files | http://lnav.org
- pacman - lnav - 0.14.0-1: normalized package name match | Arch Linux sync databases: lnav from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A curses-based tool for viewing and analyzing log files | http://lnav.org/
- zypper - lnav - 0.14.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: lnav from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Logfile Navigator | https://lnav.org
- MacPorts - lnav: normalized package name match | MacPorts ports tree: sysutils/lnav/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/lnav: normalized package name match | Scoop official bucket manifest trees: bucket/lnav.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - tstack.lnav: normalized package name match | Windows Package Manager source index: tstack.lnav from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [libarchive](https://www.automicvault.com/pkg/brew/libarchive/) - Runtime dependency declared by Homebrew.
- [pcre2](https://www.automicvault.com/pkg/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [sqlite](https://www.automicvault.com/pkg/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [alp](https://www.automicvault.com/pkg/brew/alp/) - Shares av.db curated category or tags: cli, developer-tools, logs.
- [bvi](https://www.automicvault.com/pkg/brew/bvi/) - Shares av.db curated category or tags: cli, curses, developer-tools, terminal.
- [cgdb](https://www.automicvault.com/pkg/brew/cgdb/) - Shares av.db curated category or tags: cli, curses, developer-tools, terminal.
- [clog](https://www.automicvault.com/pkg/brew/clog/) - Shares av.db curated category or tags: cli, developer-tools, logs, terminal.
- [fblog](https://www.automicvault.com/pkg/brew/fblog/) - Shares av.db curated category or tags: cli, developer-tools, log-viewer, logs.
- [grc](https://www.automicvault.com/pkg/brew/grc/) - Shares av.db curated category or tags: cli, developer-tools, logs, terminal.
- [hl](https://www.automicvault.com/pkg/brew/hl/) - Shares av.db curated category or tags: cli, developer-tools, log-viewer, logs.
- [ipbt](https://www.automicvault.com/pkg/brew/ipbt/) - Shares av.db curated category or tags: cli, curses, developer-tools, terminal.
- [analog](https://www.automicvault.com/pkg/brew/analog/) - Local package facts share a topical domain. Shared terms: analysis, cli, developer, developer-tools, log.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
