macOS
brew install lsoflocal Homebrew formula metadata
brew
lsof のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install lsoflocal Homebrew formula metadata
sudo apk add lsofAlpine Linux edge package indexes · lsof · ソース: dl-cdn.alpinelinux.org
sudo dnf install lsofFedora Rawhide package metadata · lsof · ソース: dl.fedoraproject.org
nix profile install nixpkgs#lsofnixpkgs package indexes · pkgs/by-name/ls/lsof/package.nix · ソース: api.github.com
sudo pacman -S lsofArch Linux sync databases · lsof · ソース: geo.mirror.pkgbuild.com
sudo zypper install lsofopenSUSE Tumbleweed package metadata · lsof · ソース: download.opensuse.org
概要
Utility to list open files
履歴
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.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
lsof | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/lsof-org/lsof
インストールメタデータ
| パッケージキー | 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 |
| Pulse | updated |
| 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 | lsof |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
liblsof-dev 4.99.4+dfsg-2
utility to list open files (development files)
https://github.com/lsof-org/lsof
sudo apt install liblsof-devliblsof0 4.99.4+dfsg-2
utility to list open files (shared library)
https://github.com/lsof-org/lsof
sudo apt install liblsof0lsof 4.99.4+dfsg-2
utility to list open files
https://github.com/lsof-org/lsof
sudo apt install lsoflsof
nix profile install nixpkgs#lsoflsof 4.95.0-1build3
utility to list open files
https://github.com/lsof-org/lsof
sudo apt install lsoflsof 4.99.6-r0
LiSt Open Files
https://github.com/lsof-org/lsof
sudo apk add lsoflsof-doc 4.99.6-r0
LiSt Open Files (documentation)
https://github.com/lsof-org/lsof
sudo apk add lsof-doclsof 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 lsoflsof 4.99.6-1
Lists open files for running Unix processes
https://github.com/lsof-org/lsof
sudo pacman -S lsofliblsof0 4.99.4-3.3
Library for listing information about files opened by process
https://github.com/lsof-org/lsof
sudo zypper install liblsof0lsof 4.99.4-3.3
A Program That Lists Information about Files Opened by Processes
https://github.com/lsof-org/lsof
sudo zypper install lsoflsof-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ソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.