Automic VaultAutomic Vault

brew

lsof を Homebrew, apk, apt, dnf, Nix, pacman, zypper でインストール

lsof のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install lsof

local Homebrew formula metadata

Linux

Alpine Linux apk確認済み · 92%
sudo apk add lsof

Alpine Linux edge package indexes · lsof · ソース: dl-cdn.alpinelinux.org

Debian apt確認済み · 92%
sudo apt install lsof

Debian stable package indexes · lsof · ソース: deb.debian.org

Fedora dnf確認済み · 92%
sudo dnf install lsof

Fedora Rawhide package metadata · lsof · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#lsof

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

Arch Linux pacman確認済み · 92%
sudo pacman -S lsof

Arch Linux sync databases · lsof · ソース: geo.mirror.pkgbuild.com

openSUSE zypper確認済み · 92%
sudo zypper install lsof

openSUSE Tumbleweed package metadata · lsof · ソース: download.opensuse.org

概要

パッケージ概要

Utility to list open files

コマンドとエイリアス

  • lsof

履歴

プロジェクトの歴史と使われ方

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.

プロジェクトの歴史

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.

採用の歴史

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.

使われ方

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.

パッケージ好きにとっての重要性

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.

タイムライン

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

セキュリティ状態

リスクレベル: グリーン

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 個のプラットフォームターゲットで利用できます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
lsofcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-26
マネージャ版4.99.7
マネージャ更新日2026-06-16
ローカルデータOK
上流最新
検出された最新4.99.7

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

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:lsof
バージョン4.99.7
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/lsof
ホームページhttps://github.com/lsof-org/lsof
リポジトリhttps://github.com/lsof-org/lsof
上流ドキュメントhttps://lsof.readthedocs.io/en/latest
ライセンスlsof
ソースアーカイブhttps://github.com/lsof-org/lsof/archive/refs/tags/4.99.7.tar.gz
最終更新2026-06-16T17:44:41Z
Pulseupdated
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

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 依存関係
  • normalized package name match
  • 一致条件: 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 依存関係
  • normalized package name match
  • 一致条件: 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 依存関係
  • normalized package name match
  • 一致条件: 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
  • 一致条件: 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 依存関係
  • normalized package name match
  • 一致条件: 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 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: 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
  • 一致条件: 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 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • normalized package name match
  • 一致条件: 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 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: 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 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: 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

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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