#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-491

### Chapter 11. General Utilities

- Prev

  Screen-5.0.1

- Next

  Sharutils-4.15.2

- Up
- Home

# shared-mime-info-2.4

## Introduction to Shared Mime Info

The Shared Mime Info package contains a MIME database. This allows central updates of MIME information for all supporting applications.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/2.4/shared-mime-info-2.4.tar.gz

- Download MD5 sum: aac56db912b7b12a04fb0018e28f2f36

- Download size: 7.5 MB

- Estimated disk space required: 26 MB (with tests)

- Estimated build time: less than 0.1 SBU (with tests)

### Additional Downloads

- Optional download, required to run the test suite: https://anduin.linuxfromscratch.org/BLFS/xdgmime/xdgmime.tar.xz

  xdgmime md5sum: 7dfb4446705d345d3acd672024049e86

### Shared Mime Info Dependencies

#### Required

GLib-2.88.0 and libxml2-2.15.3

#### Optional

xmlto-0.0.29

## Installation of Shared Mime Info

Install Shared Mime Info by running the following commands:

If you wish to run the test suite, you must first extract the `xdgmime` tarball into the current directory, and compile it so that meson can find it:

    tar -xf ../xdgmime.tar.xz &&
    make -C xdgmime

Now build the package:

    mkdir build &&
    cd    build &&

    meson setup --prefix=/usr --buildtype=release -D update-mimedb=true .. &&
    ninja

If you have followed the instructions above to build xdgmime, to test the result issue ninja test.

Now, as the `root` user:

    ninja install

## Command Explanations

`--buildtype=release`: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

`-D update-mimedb=true`: This parameter tells the build system to run update-mime-database during installation. Otherwise, this must be done manually in order to be able to use the MIME database.

## Contents

Installed Program: update-mime-database
Installed Library: None
Installed Directory: /usr/share/mime

### Short Descriptions

update-mime-database | assists in adding MIME data to the database

- Prev

  Screen-5.0.1

- Next

  Sharutils-4.15.2

- Up
- Home