Go to file
openKylinBot 8549c4ce4b changed debian/source/format to native 2022-05-14 00:51:01 +08:00
debian changed debian/source/format to native 2022-05-14 00:51:01 +08:00
lib/File Import Upstream version 0.29 2022-05-14 00:51:00 +08:00
t Test installed script when run under autopkgtest 2022-05-14 00:51:01 +08:00
Changes Import Upstream version 0.29 2022-05-14 00:51:00 +08:00
MANIFEST Import Upstream version 0.29 2022-05-14 00:51:00 +08:00
MANIFEST.SKIP Import Upstream version 0.29 2022-05-14 00:51:00 +08:00
META.json Import Upstream version 0.29 2022-05-14 00:51:00 +08:00
META.yml Import Upstream version 0.29 2022-05-14 00:51:00 +08:00
Makefile.PL Import Upstream version 0.29 2022-05-14 00:51:00 +08:00
README.md Import Upstream version 0.29 2022-05-14 00:51:00 +08:00
mimeopen Import Upstream version 0.29 2022-05-14 00:51:00 +08:00
mimetype Import Upstream version 0.29 2022-05-14 00:51:00 +08:00

README.md

File-MimeInfo

This module can be used to determine the mime type of a file; it's a replacement for File::MMagic trying to implement the freedesktop specification for using the shared mime-info database. The package comes with a script called mimetype that can be used as a file(1) work-alike.

INSTALLATION

To install this module type the following:

perl Makefile.PL
make
make test
make install

DEPENDENCIES

This module expects the freedesktop mime database to be installed, some linux distributions include it, otherwise it can obtained from:

http://freedesktop.org/Software/shared-mime-info

This module requires these other modules which can be obtained from the CPAN if they are not already installed on your system:

  • Carp
  • Exporter
  • Fcntl
  • Pod::Usage
  • File::Basename
  • File::BaseDir
  • File::DesktopEntry

Copyright (c) 2003, 2008 Jaap G Karssenberg. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.