BSD Ports

sysutils/file 5.46 FreeBSD

Utility to determine file type

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
sysutils
Package size
427.3 KiB, 10312.0 KiB installed

Description

File tests each argument in an attempt to classify it. There are three sets of tests, performed in the following order:

  • filesystem tests
  • magic number tests
  • language tests

The first test that succeeds causes the file type to be printed.

In the other systems

SystemPortVersion
FreeBSDsysutils/file5.46
NetBSDsysutils/file5.42
DragonFlysysutils/file5.46

Install

Binary package:

pkg install file

From the ports tree:

cd /usr/ports/sysutils/file/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	file>0:sysutils/file
LIB_DEPENDS=	libmagic.so:sysutils/file

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest5.465.465.395.465.46
FreeBSD:14:quarterly5.465.46n/a5.465.46
FreeBSD:15:latest5.465.46n/a5.465.46
FreeBSD:15:quarterly5.465.46n/an/an/a
FreeBSD:16:latest5.465.46n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Configuration

No options to configure.

USES
cpe libtool
Service scripts
none

Files

Manual pages 3
  • file(1)
  • libmagic(3)
  • magic(5)
pkg-plist 10
  • bin/file
  • include/magic.h
  • lib/libmagic.so
  • lib/libmagic.so.1
  • lib/libmagic.so.1.0.0
  • libdata/pkgconfig/libmagic.pc
  • share/man/man1/file.1.gz
  • share/man/man3/libmagic.3.gz
  • share/man/man5/magic.5.gz
  • share/file/magic.mgc
distinfo 1
FileSizeSHA256
file-5.46.tar.gz1.312892e+06c9cc77c7c560c543135edc555af609d5619dbef011997e988ce40a3d75d86088
Master sites 4
  • https://astron.com/pub/file/
  • https://www.nic.funet.fi/pub/mirrors/ftp.astron.com/pub/file/
  • https://ftp.icm.edu.pl/packages/file/
  • ftp://ftp.fu-berlin.de/unix/tools/file/

Commit history 0

No commits in the history this site was built from.