update-mime-database(1)

update-mime-database1

A program to build the shared mime-info database cache

Usage

update-mime-database {-h | -v | [{-V | -n}] MIME-DIR}

Overview

update-mime-database is a program which is responsible for updating the shared mime-info cache according to the system described in the Shared MIME-Info Database specification ⟨http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec⟩ from the X Desktop Group.

Options

-h

Print out a command summary.

-v

Print out the version information.

-V

Be verbose.

-n

Only update if MIME-DIR/packages/ or a file in that directory is newer than MIME-DIR/version. This is useful for package pre- and post-installation scripts.

Arguments

MIME-DIR

This is the directory for which update-mime-database should rebuild the cache. Mandatory if none of the options is provided.

Licence

Copyright (C) 2002 Thomas Leonard.
You may redistribute copies of update-mime-database under the terms of the GNU General Public License.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0–8
  5. 9–11
  6. 12–Arch

-V since Debian 4.0 (Etch); -n since Debian 9 (Stretch).

Author

Filip Van Raemdonck ([email protected]) wrote this manpage for the Debian GNU/Linux project, but it may be used by others.

From shared-mime-info 2.5.1-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.