Downloads:
6,566
Downloads of v 5.41:
440
Last Update:
27 Dec 2021
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
This is not the latest version of file available.
- 1
- 2
- 3
5.41 | Updated: 27 Dec 2021
- 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:
6,566
Downloads of v 5.41:
440
Maintainer(s):
Software Author(s):
- Ian F. Darwin
- others
file 5.41
This is not the latest version of file available.
- 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 --version=5.41 --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'" --version="'5.41'" [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'" --version="'5.41'"
$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.41'
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.41'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
cChocoPackageInstaller file
{
Name = "file"
Version = "5.41"
Source = "INTERNAL REPO URL"
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'file':
ensure => '5.41',
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 by moderator gep13 on 18 Jan 2022.
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 1048576 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/
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.
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.41/file_5.41-x86_32.7z
x64: https://github.com/rkitover/file-windows/releases/download/v5.41/file_5.41-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: A90787EE4863618A5AF8DD335518B3F4BBD9009153222AC33E01042AE05A2391
checksum64: 1D54B67436C8DC280B124B882C7335CC6658163675CDB61A6B5F49D00753BEA9
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
md5: 6EFE8D68A91AD1F773D03D19CC2E50D3 | sha1: 5D7B008261C99DB50746275AD4D7C537E1B38BC2 | sha256: 1D54B67436C8DC280B124B882C7335CC6658163675CDB61A6B5F49D00753BEA9 | sha512: 1F4430BD63029FBF56B98F02B7C5D3A354B3AD28B10AB46D9F5B0DDC9F56084B3BB944F6E7CDAA577D073C4C97D3866D364E4BCE7FBE44269E7CA25EA58C6902
md5: CD67086E3E4F41F28AEB184C763BDD85 | sha1: C6FB3266CE4CBCB1E86B697188F39AE889F1B803 | sha256: A90787EE4863618A5AF8DD335518B3F4BBD9009153222AC33E01042AE05A2391 | sha512: 7FC7D9844014273CEEFDAB539A14B2AA230C9477FF11AB91A6F36F9A83E858DFF58842120E76A7F5A56B81A61B5340012A8B06DC2115759FC085111A3D9D273F
Log in or click on link to see number of positives.
- file.5.41.nupkg (90dc1e5a0f76) - ## / 61
- file.exe (1d54b67436c8) - ## / 67
- file.exe (a90787ee4863) - ## / 67
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.
Add to Builder | Version | Downloads | Last Updated | Status |
---|---|---|---|---|
file 5.45 | 2963 | Thursday, October 26, 2023 | Approved | |
file 5.44 | 1148 | Sunday, May 21, 2023 | Approved | |
file 5.43 | 1108 | Monday, December 19, 2022 | Approved | |
file 5.42 | 751 | Sunday, June 19, 2022 | Approved | |
file 5.41 | 440 | Monday, December 27, 2021 | Approved | |
file 5.38 | 156 | Saturday, October 9, 2021 | Approved |
1986-1999 Ian F. Darwin
- Avinash Sonawane: Fix tzname detection
- Fix relationship tests with "search" magic, don't short circuit
- Fix memory leak in compile mode
- PR/272: kiefermat: Only set returnval = 1 when we printed something
- PR/270: Don't translate unprintable characters in %s magic formats
- PR/269: Avoid undefined behavior with clang (adding offset to NULL)
- Add a new flag (f) that requires that the match is a full word,
- Add varint types (unused)
- PR/256: mutableVoid: If the file is less than 3 bytes, use the file
- PR/259: aleksandr.v.novichkov: mime printing through indirect magic
- count the total bytes found not the total byte positions
-
- vcredist140 (≥ 14.16.27024.1)
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.