Automic VaultAutomic Vault

brew

Installer lsof avec Homebrew, apk, apt, dnf, Nix, pacman, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de lsof pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install lsof

local Homebrew formula metadata

Linux

Alpine Linux apkvérifié · 92%
sudo apk add lsof

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

Debian aptvérifié · 92%
sudo apt install lsof

Debian stable package indexes · lsof · Source: deb.debian.org

Fedora dnfvérifié · 92%
sudo dnf install lsof

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

Nixvérifié · 92%
nix profile install nixpkgs#lsof

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

Arch Linux pacmanvérifié · 92%
sudo pacman -S lsof

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

openSUSE zyppervérifié · 92%
sudo zypper install lsof

openSUSE Tumbleweed package metadata · lsof · Source: download.opensuse.org

aperçu

Résumé du paquet

Utility to list open files

Commandes et alias

  • lsof

historique

Historique du projet et usages

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.

Historique du projet

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.

Historique d'adoption

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.

Modes d'utilisation

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.

Pourquoi les passionnés de paquets s'y intéressent

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.

Chronologie

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

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucun hook post-install Homebrew n’est enregistré dans les métadonnées de formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 6 plateformes.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

exécutables

Exécutables installés

CommandeTypeExpositionNote
lsofcliexécutable global

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-07-26
version du gestionnaire4.99.7
gestionnaire mis à jour2026-06-16
données localesOK
amontà jour
dernière version détectée4.99.7

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

  • OKAucun avertissement de fraîcheur n'a été généré.

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:lsof
Version4.99.7
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/lsof
Page d'accueilhttps://github.com/lsof-org/lsof
Dépôthttps://github.com/lsof-org/lsof
Docs amonthttps://lsof.readthedocs.io/en/latest
Licencelsof
Archive sourcehttps://github.com/lsof-org/lsof/archive/refs/tags/4.99.7.tar.gz
Dernière mise à jour2026-06-16T17:44:41Z
Pulseupdated
Bouteilledisponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
post-install Homebrewnon défini
Serviceaucun déclaré

faits du registre

Détails de la base source

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

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

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 Dépendances
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 2 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

  • 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