Downloads:
6,497
Downloads of v 5.38:
156
Last Update:
09 Oct 2021
Package Maintainer(s):
Software Author(s):
- Ian F. Darwin
- others
Tags:
file type guess utility unix linux commandline- 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.38 | Updated: 09 Oct 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,497
Downloads of v 5.38:
156
Maintainer(s):
Software Author(s):
- Ian F. Darwin
- others
file 5.38
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.38 --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.38'" [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.38'"
$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.38'
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.38'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
cChocoPackageInstaller file
{
Name = "file"
Version = "5.38"
Source = "INTERNAL REPO URL"
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'file':
ensure => '5.38',
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 flcdrg on 11 Nov 2021.
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
-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
indir 15 recursion limit for indirection
name 30 use limit for name/use magic
elf_notes 256 max ELF notes processed
elf_phnum 128 max ELF prog sections processed
elf_shnum 32768 max ELF sections processed
-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/
MIT License
Copyright (c) 2017 Julian David Rath
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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/julian-r/file-windows/releases/download/v5.38/file_5.38-build49-vs2019-x86.zip
x64: https://github.com/julian-r/file-windows/releases/download/v5.38/file_5.38-build49-vs2019-x64.zip
to download the installer.
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: 5604A2D55DF649A648C5547BDAA7801DA73E047906BA6F848F0AA2BAF38F38BB
checksum64: 4DD53394B90141AF1F5A4E0549FC059AA1A754407E8BA70A1E6663B489F4CBDD
License text in LICENSE.txt file was obtained
on 10/09/2021
from https://github.com/julian-r/file-windows/blob/master/LICENSE
md5: DE39C11140B28C04974FD60331795844 | sha1: 85F43B6A29031F9D9DE5CC7826384117B0E467A9 | sha256: 4DD53394B90141AF1F5A4E0549FC059AA1A754407E8BA70A1E6663B489F4CBDD | sha512: FB5104B10F6A581C90428D107430768B6B0160BDECDC87AE6CC67F7B212C1AA445187F7E3211307524E93A05DA1E106A377CEEDC3EBD391B30F49E8BF95A85C4
md5: 1209ED56A2DC78D3220C000A98A025A4 | sha1: 6A4C893D6FA35FAF917402110955407E8C48063C | sha256: 5604A2D55DF649A648C5547BDAA7801DA73E047906BA6F848F0AA2BAF38F38BB | sha512: 7102B61B377C0AE3BA9655C3A4963C8CB4C4EE353272DD7045CD1AD35C58FBBF111CC50335073B5EBC8EC61C6AD6B533FB2ACA44A50CAD3FC047AFB33927BF49
Log in or click on link to see number of positives.
- file.5.38.nupkg (c49b7fcfc8b2) - ## / 62
- file_5.38-build49-vs2019-x64.zip (4dd53394b901) - ## / 65
- file_5.38-build49-vs2019-x86.zip (5604a2d55df6) - ## / 64
- file.exe (77a7b441e2ae) - ## / 69
- libmagic.dll (da1472248238) - ## / 65
- file.exe (b9d44f5db222) - ## / 71
- libmagic.dll (4df4d62d25bc) - ## / 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.
Add to Builder | Version | Downloads | Last Updated | Status |
---|---|---|---|---|
file 5.45 | 2895 | 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 | 750 | Sunday, June 19, 2022 | Approved | |
file 5.41 | 440 | Monday, December 27, 2021 | Approved | |
file 5.38 | 156 | Saturday, October 9, 2021 | Approved |
Copyright (c) 2017 Julian David Rath
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.