Downloads:
1,689
Downloads of v 5.44:
119
Last Update:
21 May 2023
Package Maintainer(s):
Software Author(s):
- Ian F. Darwin
- others
Tags:
file type filetype guess guesser utility unix linux commandline command-line magic libmagic- Software Specific:
- Software Site
- Software Source
- Software License
- Software Issues
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
file
- 1
- 2
- 3
5.44 | Updated: 21 May 2023
- Software Specific:
- Software Site
- Software Source
- Software License
- Software Issues
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Downloads:
1,689
Downloads of v 5.44:
119
Maintainer(s):
Software Author(s):
- Ian F. Darwin
- others
file 5.44
- 1
- 2
- 3
Some Checks Have Failed or Are Not Yet Complete
Not All Tests Have Passed
Deployment Method: Individual Install, Upgrade, & Uninstall
To install file, run the following command from the command line or from PowerShell:
To upgrade file, run the following command from the command line or from PowerShell:
To uninstall file, run the following command from the command line or from PowerShell:
Deployment Method:
This applies to both open source and commercial editions of Chocolatey.
1. Enter Your Internal Repository Url
(this should look similar to https://community.chocolatey.org/api/v2/)
2. Setup Your Environment
1. Ensure you are set for organizational deployment
Please see the organizational deployment guide
2. Get the package into your environment
Option 1: Cached Package (Unreliable, Requires Internet - Same As Community)-
Open Source or Commercial:
- Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
- You can also just download the package and push it to a repository Download
-
Open Source
-
Download the package:
Download - Follow manual internalization instructions
-
-
Package Internalizer (C4B)
-
Run: (additional options)
choco download file --internalize --source=https://community.chocolatey.org/api/v2/
-
For package and dependencies run:
choco push --source="'INTERNAL REPO URL'"
- Automate package internalization
-
Run: (additional options)
3. Copy Your Script
choco upgrade file -y --source="'INTERNAL REPO URL'" [other options]
See options you can pass to upgrade.
See best practices for scripting.
Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.
If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:
choco upgrade file -y --source="'INTERNAL REPO URL'"
$exitCode = $LASTEXITCODE
Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
Exit 0
}
Exit $exitCode
- name: Install file
win_chocolatey:
name: file
version: '5.44'
source: INTERNAL REPO URL
state: present
See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.
chocolatey_package 'file' do
action :install
source 'INTERNAL REPO URL'
version '5.44'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
cChocoPackageInstaller file
{
Name = "file"
Version = "5.44"
Source = "INTERNAL REPO URL"
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'file':
ensure => '5.44',
provider => 'chocolatey',
source => 'INTERNAL REPO URL',
}
Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.
4. If applicable - Chocolatey configuration/installation
See infrastructure management matrix for Chocolatey configuration elements and examples.
This package was approved as a trusted package on 21 May 2023.
file
The file command is "a file type guesser", that is, a command-line tool that tells you in words what kind of data a file contains. Unlike most GUI systems, command-line UNIX systems - with this program leading the charge - don't rely on filename extentions to tell you the type of a file, but look at the file's actual contents. This is, of course, more reliable, but requires a bit of I/O.
Examples
$ file logo
logo: Adobe Photoshop Image, 2457 x 3425, RGB, 3x 8-bit channels
$ file INSTALL
INSTALL: ReStructuredText file, ASCII text
Usage
$ file --help
Usage: file [OPTION...] [FILE...]
Determine type of FILEs.
--help display this help and exit
-v, --version output version information and exit
-m, --magic-file LIST use LIST as a colon-separated list of magic
number files
-z, --uncompress try to look inside compressed files
-Z, --uncompress-noreport only print the contents of compressed files
-b, --brief do not prepend filenames to output lines
-c, --checking-printout print the parsed form of the magic file, use in
conjunction with -m to debug a new magic file
before installing it
-e, --exclude TEST exclude TEST from the list of test to be
performed for file. Valid tests are:
apptype, ascii, cdf, compress, csv, elf,
encoding, soft, tar, json, text,
tokens
--exclude-quiet TEST like exclude, but ignore unknown tests
-f, --files-from FILE read the filenames to be examined from FILE
-F, --separator STRING use string as separator instead of `:'
-i, --mime output MIME type strings (--mime-type and
--mime-encoding)
--apple output the Apple CREATOR/TYPE
--extension output a slash-separated list of extensions
--mime-type output the MIME type
--mime-encoding output the MIME encoding
-k, --keep-going don't stop at the first match
-l, --list list magic strength
-n, --no-buffer do not buffer output
-N, --no-pad do not pad output
-0, --print0 terminate filenames with ASCII NUL
-P, --parameter set file engine parameter limits
bytes 7340032 max bytes to look inside file
elf_notes 256 max ELF notes processed
elf_phnum 2048 max ELF prog sections processed
elf_shnum 32768 max ELF sections processed
encoding 65536 max bytes to scan for encoding
indir 50 recursion limit for indirection
name 50 use limit for name/use magic
regex 8192 length limit for REGEX searches
-r, --raw don't translate unprintable chars to \ooo
-s, --special-files treat special (block/char devices) files as
ordinary ones
-S, --no-sandbox disable system call sandboxing
-C, --compile compile file specified by -m
-d, --debug print debugging messages
Report bugs to https://bugs.astron.com/
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.
Package can be verified like this:
1. Go to
x86: https://github.com/rkitover/file-windows/releases/download/v5.44/file_5.44-x86_32.7z
x64: https://github.com/rkitover/file-windows/releases/download/v5.44/file_5.44-x86_64.7z
to download the archive.
2. You can use one of the following methods to obtain the SHA256 checksum:
- Use powershell function 'Get-FileHash'
- Use Chocolatey utility 'checksum.exe'
checksum32: F81B514D961D560477AA10C654C066FE2F4AEF6856A9B1A1D126497B7FD5393A
checksum64: 980F0A8943DEFA655F936DD7537151C174373998E08762BBAB78206DEF207A55
The checksum matches file.exe inside the archive.
License text in LICENSE.txt file was obtained
on 12/26/2021
from https://raw.githubusercontent.com/file/file/FILE5_41/COPYING
LICENSE
$File: COPYING,v 1.2 2018/09/09 20:33:28 christos Exp $
Copyright (c) Ian F. Darwin 1986, 1987, 1989, 1990, 1991, 1992, 1994, 1995.
Software written by Ian F. Darwin and others;
maintained 1994- Christos Zoulas.
This software is not subject to any export provision of the United States
Department of Commerce, and may be exported to any country or planet.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice immediately at the beginning of the file, without modification,
this list of conditions, and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
md5: 8ECCBC4D6486F05817B41D121851C73A | sha1: FECAD670BA3C040486A17591F4E07F761643C9A3 | sha256: F81B514D961D560477AA10C654C066FE2F4AEF6856A9B1A1D126497B7FD5393A | sha512: F85AF2493CD179270EF390B3366DFEE0F9D14039A26011DAF04554A4324CE3A1A09673AA999AF155B99239923985FF520A768B558D92B2DCFEC389E4455EACFC
md5: 553797BD8763D75FF72B987690449513 | sha1: E0FB512381D2C5F9C7C26BD030C4B1E2CF1EA38E | sha256: 980F0A8943DEFA655F936DD7537151C174373998E08762BBAB78206DEF207A55 | sha512: A800166E1F18778670AC51D1F42F0AC1EF599505832D63D2FE98959EF83625864B194EFCD585D7DEA2D7F47708E216505869C1EE79DC672511621BCDA54D58BD
Log in or click on link to see number of positives.
- file.5.44.nupkg (90a5a6dcb8db) - ## / 63
- file.exe (980f0a8943de) - ## / 70
- file.exe (f81b514d961d) - ## / 71
In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).
Chocolatey Pro provides runtime protection from possible malware.
1986-1999 Ian F. Darwin
- Handle nan's so that we don't get internal floating point exceptions
- PR/397: Restore the ability to process files from stdin immediately.
- fixed various clustefuzz issues
- Fix error detection for decompression code (Vincent Mihalkovic)
- Add MAGIC_NO_COMPRESS_FORK and use it to produce a more
- Add built-in lzip decompression support (Michal Gorny)
- Add built-in zstd decompression support (Martin Rodriguez Reboredo)
This package has no dependencies.
Ground Rules:
- This discussion is only about file and the file package. If you have feedback for Chocolatey, please contact the Google Group.
- This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
- The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
- Tell us what you love about the package or file, or tell us what needs improvement.
- Share your experiences with the package, or extra configuration or gotchas that you've found.
- If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.