pkg.soopen package index

brew / 排名 2043

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 file-formula

查看 file-formula 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install file-formula

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install file

MacPorts ports tree · sysutils/file/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add file

Alpine Linux edge package indexes · file · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install file

Debian stable package indexes · file · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install file

Fedora Rawhide package metadata · file · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#file

nixpkgs package indexes · file · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S file

Arch Linux sync databases · file · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install file

openSUSE Tumbleweed package metadata · file · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install file

Chocolatey community package catalog · file · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/file

Scoop official bucket manifest trees · bucket/file.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id GnuWin32.File -e

Windows Package Manager source index · GnuWin32.File · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Utility to determine file types

命令和别名

  • file

历史

项目历史与用法

file is the widely used Unix command and libmagic library for identifying file types from contents rather than names or extensions.

项目历史

Ian Darwin's official page distinguishes the historical Bell Labs Unix file command from his free reimplementation. It notes that the original command shipped with Bell Labs Unix, including a Research 4th Edition man page from 1973, but was not generally available in source form before Darwin's reimplementation.

Darwin's implementation and magic file began in 1987; the page shows an RCS initial revision dated August 23, 1987. The README describes Release 5.x as Ian Darwin's implementation of the Unix file command and says it knows the magic numbers of several thousand file types.

Maintenance later broadened. The README credits Guy Harris as the prime contributor to Release 3.8, Christos Zoulas as the prime contributor to Release 3.0, and Mans Rullgard as the prime contributor to 4.0, where the code was refactored into libmagic and the file command was rewritten on top of that library.

采用历史

The official README states that this version is the standard file command for Linux, BSD, and other systems. Darwin's page adds that it ships with most free operating systems, has been ported to systems including DOS, Microsoft Windows, and OS/2, and that OpenBSD uses the project's configuration files even though it maintains its own code.

The supplied package metadata reflects that platform reach, listing packages across Homebrew, Alpine, Debian, Ubuntu, Fedora, MacPorts, Nix, Arch, Scoop, Chocolatey, winget, and openSUSE.

使用方式

The command-line use is simple: pass paths to file and receive textual guesses about their data type. The important behavior is that it examines file contents, including filesystem data, magic rules, and hardwired text/encoding checks, rather than relying on filename extensions.

The libmagic split made the same detection engine reusable by other programs without spawning the file command. The README and homepage call out libmagic as a library interface for third-party file-type detection.

为什么软件包爱好者会关心

file is one of the core Unix plumbing commands package maintainers take for granted until it is missing, stale, or misdetecting a format. It underpins configure scripts, build systems, MIME/type detection, archive inspection, and debugging sessions.

Its magic database is also culturally important: maintaining file means maintaining a compact, portable folk taxonomy of binary formats, text encodings, archives, executable formats, and application data.

时间线

  • 1973: A Research 4th Edition Unix file man page documents the earlier Bell Labs command.
  • 1987: Ian Darwin's RCS history records the initial revision of his free implementation.
  • Release 3.0: Christos Zoulas contributes major code changes.
  • Release 3.8: Guy Harris contributes byte-order independence and other large changes.
  • Release 4.0: The code is refactored into libmagic plus a command-line frontend.
  • Release 5.x: The README identifies it as the standard file command for Linux, BSD, and other systems.

Related projects

  • file is related to libmagic consumers, MIME detection systems, Unix magic(5) databases, package build tooling, and operating-system file managers that need content-based type detection.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
file可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本5.48
管理器更新时间2026-06-22
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:file-formula
版本5.48
软件包管理器Homebrew
主页https://darwinsys.com/file/
仓库https://github.com/file/file
最后更新2026-06-22T14:03:20-07:00
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

MacPorts94%

file

sudo port install file
  • installed executable or alias match
  • 匹配方式:File
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/file/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Debian apt92%

file 1:5.46-5

Recognize the type of data in a file using "magic" numbers

https://www.darwinsys.com/file/

sudo apt install file
  • Section: utils
  • Architecture: amd64
  • 2 依赖
  • installed executable or alias match
  • 匹配方式:File
Debian stable package indexes · deb.debian.org · Debian stable package indexes: file from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

libmagic-dev 1:5.46-5

Recognize the type of data in a file using "magic" numbers - development

https://www.darwinsys.com/file/

sudo apt install libmagic-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: file
  • 1 依赖
  • 1 可选依赖
  • installed executable or alias match
  • 匹配方式:File
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmagic-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

libmagic-mgc 1:5.46-5

File type determination library using "magic" numbers (compiled magic file)

https://www.darwinsys.com/file/

sudo apt install libmagic-mgc
  • Section: libs
  • Architecture: amd64
  • Source Package: file
  • installed executable or alias match
  • 匹配方式:File
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmagic-mgc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt92%

libmagic1t64 1:5.46-5

Recognize the type of data in a file using "magic" numbers - library

https://www.darwinsys.com/file/

sudo apt install libmagic1t64
  • Section: libs
  • Architecture: amd64
  • Source Package: file
  • 5 依赖
  • 1 提供
  • 1 可选依赖
  • installed executable or alias match
  • 匹配方式:File
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmagic1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

file

nix profile install nixpkgs#file
  • installed executable or alias match
  • 匹配方式:File
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: file from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt92%

file 1:5.45-3build1

Recognize the type of data in a file using "magic" numbers

https://www.darwinsys.com/file/

sudo apt install file
  • Section: utils
  • Architecture: amd64
  • 2 依赖
  • installed executable or alias match
  • 匹配方式:File
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: file from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt92%

libmagic-dev 1:5.45-3build1

Recognize the type of data in a file using "magic" numbers - development

https://www.darwinsys.com/file/

sudo apt install libmagic-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: file
  • 1 依赖
  • 1 可选依赖
  • installed executable or alias match
  • 匹配方式:File
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmagic-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt92%

libmagic-mgc 1:5.45-3build1

File type determination library using "magic" numbers (compiled magic file)

https://www.darwinsys.com/file/

sudo apt install libmagic-mgc
  • Section: libs
  • Architecture: amd64
  • Source Package: file
  • installed executable or alias match
  • 匹配方式:File
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmagic-mgc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt92%

libmagic1t64 1:5.45-3build1

Recognize the type of data in a file using "magic" numbers - library

https://www.darwinsys.com/file/

sudo apt install libmagic1t64
  • Section: libs
  • Architecture: amd64
  • Source Package: file
  • 5 依赖
  • 1 提供
  • 1 可选依赖
  • installed executable or alias match
  • 匹配方式:File
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmagic1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk92%

file 5.47-r2

File type identification utility

https://www.darwinsys.com/file/

sudo apk add file
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: file
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:File
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: file from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

file-dev 5.47-r2

File type identification utility (development files)

https://www.darwinsys.com/file/

sudo apk add file-dev
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: file
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:File
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: file-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

file-doc 5.47-r2

File type identification utility (documentation)

https://www.darwinsys.com/file/

sudo apk add file-doc
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: file
  • installed executable or alias match
  • 匹配方式:File
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: file-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

libmagic 5.47-r2

File type identification library

https://www.darwinsys.com/file/

sudo apk add libmagic
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: file
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:File
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libmagic from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

libmagic-static 5.47-r2

File type identification utility (static library)

https://www.darwinsys.com/file/

sudo apk add libmagic-static
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: file
  • installed executable or alias match
  • 匹配方式:File
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libmagic-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf92%

file 5.47-3.fc45

Utility for determining file types

https://www.darwinsys.com/file/

sudo dnf install file
  • License: BSD-2-Clause-Darwin AND BSD-2-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: file
  • 4 依赖
  • 2 提供
  • installed executable or alias match
  • 匹配方式:File
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: file from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation