Automic VaultAutomic Vault

brew

Install lsof with Homebrew, apk, apt, dnf, Nix, pacman, zypper

Utility to list open files. Version 4.99.7 via Homebrew; verified 2026-06-16.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install lsof

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add lsof

Alpine Linux edge package indexes · lsof · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install liblsof-dev

Debian stable package indexes · liblsof-dev · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install lsof

Fedora Rawhide package metadata · lsof · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#lsof

nixpkgs package indexes · pkgs/by-name/ls/lsof/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S lsof

Arch Linux sync databases · lsof · source: geo.mirror.pkgbuild.com

Ubuntu aptverified · 92%
sudo apt install lsof

Ubuntu 24.04 LTS package indexes · lsof · source: archive.ubuntu.com

openSUSE zypperverified · 92%
sudo zypper install liblsof0

openSUSE Tumbleweed package metadata · liblsof0 · source: download.opensuse.org

overview

Package summary

Utility to list open files

Commands and aliases

  • lsof

history

Project history and usage

lsof, short for LiSt Open Files, is a long-running Unix diagnostic command for showing which processes have files, directories, devices, sockets, and other file-like objects open. Its official documentation describes common uses such as finding processes blocking unmounts, locating unlinked open files, inspecting network sockets, and filtering by PID, command, or user.

Project history

The official lsof documentation states that Vic Abell originally developed and maintained lsof beginning in 1994. The project later moved under the lsof-org team on GitHub, which now publishes the current releases and Read the Docs documentation.

lsof's importance comes from the Unix everything-is-a-file model. The official manpage describes support across many Unix dialects, including Linux, Darwin/macOS, FreeBSD, NetBSD, OpenBSD, Solaris, and OpenIndiana, and explains that open files include regular files, directories, character and block devices, executing text references, libraries, streams, internet sockets, NFS files, and Unix-domain sockets.

Adoption history

lsof is one of the canonical system-administration packages. The official docs say it is provided by package managers, and the supplied package facts list availability through Homebrew, Alpine, Debian/Ubuntu, Fedora/DNF, Arch, Nix, and openSUSE/Zypper.

The GitHub repository was created for the maintained upstream in 2018 and continues to receive updates. The project documentation lists active support and CI coverage across major Unix-like systems, which helps downstream package maintainers keep it viable despite kernel and platform-specific internals.

How it is used

Administrators and developers use lsof to answer practical questions: which process has a file open, why a filesystem cannot be unmounted, where deleted-but-open files are consuming disk space, which TCP or UDP sockets a process owns, and what a named command or user has open.

The official manpage is unusually rich because lsof has to expose platform-specific kernel data in a portable CLI. It includes selectors for paths, PIDs, users, commands, network addresses, file descriptors, zones, repeat mode, parseable output via `-F`, and device-cache behavior.

Why package nerds care

For package nerds, lsof is foundational plumbing. It is a tiny command with outsized diagnostic value, but it is hard to maintain because it tracks kernel data structures and Unix dialect differences. That combination explains why it is routinely installed by default or close to default in sysadmin toolsets, containers, rescue environments, and debugging checklists.

Timeline

  • 1994: Vic Abell begins developing and maintaining lsof.
  • 2018: lsof-org/lsof GitHub repository is created for current upstream maintenance.
  • 2020s: lsof-org maintains Read the Docs documentation and GitHub releases.
  • 2026: Official docs list active support for Linux, FreeBSD, Darwin/macOS, NetBSD, OpenBSD, Solaris/OpenIndiana, and CI testing across common distributions.

Related projects

  • Related diagnostics include fuser, ps, ss, netstat, procfs tools, and platform-specific filesystem or socket inspection commands. lsof remains distinctive because it unifies process, file descriptor, filesystem, and network views in one command.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
lsofcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version4.99.7
manager updated2026-06-16
local dataok
upstreamcurrent
latest detected4.99.7

https://github.com/lsof-org/lsof

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:lsof
Version4.99.7
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/lsof
Homepagehttps://github.com/lsof-org/lsof
Repositoryhttps://github.com/lsof-org/lsof
Upstream docshttps://lsof.readthedocs.io/en/latest
Licenselsof
Source archivehttps://github.com/lsof-org/lsof/archive/refs/tags/4.99.7.tar.gz
Last updated2026-06-16T17:44:41Z
Pulseupdated
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

liblsof-dev 4.99.4+dfsg-2

utility to list open files (development files)

https://github.com/lsof-org/lsof

sudo apt install liblsof-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: lsof
  • 1 dependencies
  • normalized package name match
  • Matched by: Lsof
Debian stable package indexes · deb.debian.org · Debian stable package indexes: liblsof-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

liblsof0 4.99.4+dfsg-2

utility to list open files (shared library)

https://github.com/lsof-org/lsof

sudo apt install liblsof0
  • Section: libs
  • Architecture: amd64
  • Source Package: lsof
  • 2 dependencies
  • normalized package name match
  • Matched by: Lsof
Debian stable package indexes · deb.debian.org · Debian stable package indexes: liblsof0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

lsof 4.99.4+dfsg-2

utility to list open files

https://github.com/lsof-org/lsof

sudo apt install lsof
  • Section: utils
  • Architecture: amd64
  • 4 dependencies
  • normalized package name match
  • Matched by: Lsof
Debian stable package indexes · deb.debian.org · Debian stable package indexes: lsof from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

lsof

nix profile install nixpkgs#lsof
  • normalized package name match
  • Matched by: Lsof
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ls/lsof/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

lsof 4.95.0-1build3

utility to list open files

https://github.com/lsof-org/lsof

sudo apt install lsof
  • Section: utils
  • Architecture: amd64
  • 3 dependencies
  • normalized package name match
  • Matched by: Lsof
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: lsof from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

lsof 4.99.6-r0

LiSt Open Files

https://github.com/lsof-org/lsof

sudo apk add lsof
  • License: custom
  • Architecture: x86_64
  • Source Package: lsof
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Lsof
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lsof from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

lsof-doc 4.99.6-r0

LiSt Open Files (documentation)

https://github.com/lsof-org/lsof

sudo apk add lsof-doc
  • License: custom
  • Architecture: x86_64
  • Source Package: lsof
  • normalized package name match
  • Matched by: Lsof
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lsof-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

lsof 4.99.6-1.fc45

A utility which lists open files on a Linux/UNIX system

https://github.com/lsof-org/lsof

sudo dnf install lsof
  • License: lsof
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: lsof
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Lsof
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: lsof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

lsof 4.99.6-1

Lists open files for running Unix processes

https://github.com/lsof-org/lsof

sudo pacman -S lsof
  • License: custom
  • Architecture: x86_64
  • 2 dependencies
  • normalized package name match
  • Matched by: Lsof
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: lsof from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

liblsof0 4.99.4-3.3

Library for listing information about files opened by process

https://github.com/lsof-org/lsof

sudo zypper install liblsof0
  • License: Zlib
  • Category: System/Monitoring
  • Architecture: x86_64
  • Source Package: lsof
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Lsof
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: liblsof0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

lsof 4.99.4-3.3

A Program That Lists Information about Files Opened by Processes

https://github.com/lsof-org/lsof

sudo zypper install lsof
  • License: Zlib
  • Category: System/Monitoring
  • Architecture: x86_64
  • Source Package: lsof
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Lsof
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lsof from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

lsof-devel 4.99.4-3.3

Library for listing information about files opened by process

https://github.com/lsof-org/lsof

sudo zypper install lsof-devel
  • License: Zlib
  • Category: System/Monitoring
  • Architecture: x86_64
  • Source Package: lsof
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Lsof
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lsof-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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