pkg.soopen package index

brew / rang 2043

Installer file-formula avec Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget

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

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install file-formula

local Homebrew formula metadata

MacPortsvérifié · 94%
sudo port install file

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

Linux

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

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

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

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

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

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

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

nixpkgs package indexes · file · Source: raw.githubusercontent.com

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

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

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

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

Windows

Chocolateyvérifié · 92%
choco install file

Chocolatey community package catalog · file · Source: community.chocolatey.org

Scoopvérifié · 92%
scoop install main/file

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

Windows Package Managervérifié · 92%
winget install --id GnuWin32.File -e

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

aperçu

Résumé du paquet

Utility to determine file types

Commandes et alias

  • file

historique

Historique du projet et usages

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

Historique du projet

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.

Historique d'adoption

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.

Modes d'utilisation

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.

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

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.

Chronologie

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

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

  • Aucune métadonnée de bottle Homebrew n’a été enregistrée.

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
fileexécutableexécutable indexéDécouvert depuis l'index local des exécutables.

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-08-03
version du gestionnaire5.48
gestionnaire mis à jour2026-06-22
données localesinconnu
amontnon disponible
dernière version détectéenon détecté
  • OKAucun avertissement de fraîcheur n'a été généré.

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:file-formula
Version5.48
Gestionnaire de paquetsHomebrew
Page d'accueilhttps://darwinsys.com/file/
Dépôthttps://github.com/file/file
Dernière mise à jour2026-06-22T14:03:20-07:00
Pulseupdated
Bouteillenon enregistré
Serviceaucun déclaré

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.

MacPorts94%

file

sudo port install file
  • installed executable or alias match
  • Correspondance par : 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 Dépendances
  • installed executable or alias match
  • Correspondance par : 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 Dépendances
  • 1 dépendances optionnelles
  • installed executable or alias match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • 1 dépendances optionnelles
  • installed executable or alias match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • installed executable or alias match
  • Correspondance par : 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 Dépendances
  • 1 dépendances optionnelles
  • installed executable or alias match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • 1 dépendances optionnelles
  • installed executable or alias match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • installed executable or alias match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • installed executable or alias match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • installed executable or alias match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • 2 fournit
  • installed executable or alias match
  • Correspondance par : 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

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
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation