update-mime-database(1) X Desktop Group update-mime-database(1)

# [NAME](#NAME)

update-mime-database - a program to build the Shared MIME-Info database cache

# [SYNOPSIS](#SYNOPSIS)

**update-mime-database -h** | **-v** | \[ **-V** | **-n** ] *MIME-DIR*

# [DESCRIPTION](#DESCRIPTION)

**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](#OPTIONS)

[**-h**](#h)

Print out a command summary.

[**-v**](#v)

Print out the version information.

[**-V**](#V)

Be verbose.

[**-n**](#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](#ARGUMENTS)

[**MIME-DIR**](#MIME_DIR)

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

# [AUTHOR](#AUTHOR)

Filip Van Raemdonck (mechanix@debian.org) wrote this manpage for the Debian GNU/Linux project, but it may be used by others.

# [LICENCE](#LICENCE)

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

26 Jul 2002 Filip Van Raemdonck

---

Document: update-mime-database(1) from shared-mime-info 2.5.1-r3 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xdg/shared-mime-info
