# Install desktop-file-utils with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Command-line utilities for working with desktop entries. Version 0.28 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:desktop-file-utils
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install desktop-file-utils
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install desktop-file-utils
```

  Evidence: MacPorts ports tree: gnome/desktop-file-utils/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add desktop-file-utils
```

  Evidence: Alpine Linux edge package indexes: desktop-file-utils from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install desktop-file-utils
```

  Evidence: Debian stable package indexes: desktop-file-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install desktop-file-utils
```

  Evidence: Fedora Rawhide package metadata: desktop-file-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#desktop-file-utils
```

  Evidence: nixpkgs package indexes: pkgs/by-name/de/desktop-file-utils/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S desktop-file-utils
```

  Evidence: Arch Linux sync databases: desktop-file-utils from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install desktop-file-utils
```

  Evidence: openSUSE Tumbleweed package metadata: desktop-file-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:desktop-file-utils
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/desktop-file-utils>
- **Version:** 0.28
- **Source summary:** Command-line utilities for working with desktop entries
- **Homepage:** <https://wiki.freedesktop.org/www/Software/desktop-file-utils/>
- **Repository:** <https://gitlab.freedesktop.org/xdg/desktop-file-utils>
- **Upstream docs:** <https://www.freedesktop.org/wiki/Software/desktop-file-utils>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-0.28.tar.xz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- desktop-file-edit (cli)
- desktop-file-install (cli)
- desktop-file-validate (cli)
- update-desktop-database (cli)
- desktop-file-edit (alias)
- desktop-file-install (alias)
- desktop-file-validate (alias)
- update-desktop-database (alias)

## Dependencies

- gettext
- glib

## Build dependencies

- meson
- ninja
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.28
- Local data: ok
- Upstream repository: https://wiki.freedesktop.org/www/Software/desktop-file-utils/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

desktop-file-utils is a freedesktop.org utility collection for working with desktop entry files. Its commands validate .desktop files, install or edit them, and update the MIME-type cache derived from desktop entries.

### Project history

The release archive starts with version 0.1 in September 2003, and the NEWS file describes that initial release as containing desktop-file-validate and desktop-file-install. Over time the project added update-desktop-database, support for newer desktop-entry specification versions, Meson builds, and a wider set of recognized desktop environments.

### Adoption history

desktop-file-utils became part of the practical plumbing of Linux desktop packaging because application packages ship .desktop launchers and MIME handlers that need validation and cache updates. The freedesktop.org page documents development in the xdg/desktop-file-utils GitLab repository and release tarballs on freedesktop.org.

### How it is used

Packagers and desktop maintainers use desktop-file-validate to catch desktop-entry specification violations, desktop-file-install and desktop-file-edit to install or modify entries, and update-desktop-database to rebuild the cache of MIME types handled by desktop files.

### Why package nerds care

For package nerds, desktop-file-utils is classic Linux desktop infrastructure: it rarely appears in screenshots, but it enforces the metadata that makes launchers, menus, MIME associations, and desktop integration work consistently across distributions.

### Timeline

- 2003: Version 0.1 initial release contained desktop-file-validate and desktop-file-install.
- 2004: Version 0.7 added update-desktop-database.
- 2020: Version 0.25 added Meson build support and deprecated Autotools.
- 2023: Version 0.27 removed Autotools support and added desktop spec 1.5 support.
- 2024: Version 0.28 was released.

### Related projects

- Related freedesktop.org standards include the Desktop Entry Specification and the broader XDG desktop integration specifications.

### Sources

- <https://www.freedesktop.org/wiki/Software/desktop-file-utils>
- <https://www.freedesktop.org/software/desktop-file-utils/releases/>
- <https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/raw/master/NEWS>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** desktop-file-utils
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - desktop-file-utils - 0.28-1: normalized package name match | Debian stable package indexes: desktop-file-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Utilities for .desktop files | https://www.freedesktop.org/wiki/Software/desktop-file-utils
- Nix - desktop-file-utils: normalized package name match | nixpkgs package indexes: pkgs/by-name/de/desktop-file-utils/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - desktop-file-utils - 0.27-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: desktop-file-utils from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Utilities for .desktop files | https://www.freedesktop.org/wiki/Software/desktop-file-utils
- apk - desktop-file-utils - 0.28-r0: normalized package name match | Alpine Linux edge package indexes: desktop-file-utils from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command line utilities for working with desktop entries | https://www.freedesktop.org/wiki/Software/desktop-file-utils
- apk - desktop-file-utils-doc - 0.28-r0: normalized package name match | Alpine Linux edge package indexes: desktop-file-utils-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command line utilities for working with desktop entries (documentation) | https://www.freedesktop.org/wiki/Software/desktop-file-utils
- apk - desktop-file-utils-emacs - 0.28-r0: normalized package name match | Alpine Linux edge package indexes: desktop-file-utils-emacs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Emacs mode for desktop-file-utils | https://www.freedesktop.org/wiki/Software/desktop-file-utils
- dnf - desktop-file-utils - 0.28-5.fc44: normalized package name match | Fedora Rawhide package metadata: desktop-file-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Utilities for manipulating .desktop files | https://www.freedesktop.org/software/desktop-file-utils
- pacman - desktop-file-utils - 0.28-1: normalized package name match | Arch Linux sync databases: desktop-file-utils from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Command line utilities for working with desktop entries | https://www.freedesktop.org/wiki/Software/desktop-file-utils
- zypper - desktop-file-utils - 0.28-3.2: normalized package name match | openSUSE Tumbleweed package metadata: desktop-file-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Utilities for Manipulating Desktop Files | https://www.freedesktop.org/wiki/Software/desktop-file-utils
- MacPorts - desktop-file-utils: normalized package name match | MacPorts ports tree: gnome/desktop-file-utils/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://www.automicvault.com/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [meson](https://www.automicvault.com/pkg/brew/meson/) - Build dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [file-roller](https://www.automicvault.com/pkg/brew/file-roller/) - Popular package that depends on this formula.
- [lxi-tools](https://www.automicvault.com/pkg/brew/lxi-tools/) - Popular package that depends on this formula.
- [duti](https://www.automicvault.com/pkg/brew/duti/) - Shares av.db curated category or tags: cli, desktop-integration, system.
- [shared-mime-info](https://www.automicvault.com/pkg/brew/shared-mime-info/) - Shares av.db curated category or tags: cli, desktop-integration, freedesktop, system, xdg.
- [terminal-notifier](https://www.automicvault.com/pkg/brew/terminal-notifier/) - Shares av.db curated category or tags: cli, desktop-integration, system.
- [appstream](https://www.automicvault.com/pkg/brew/appstream/) - Shares av.db curated category or tags: cli, freedesktop, system.
- [gtrash](https://www.automicvault.com/pkg/brew/gtrash/) - Shares av.db curated category or tags: cli, freedesktop, system.
- [trash-cli](https://www.automicvault.com/pkg/brew/trash-cli/) - Shares av.db curated category or tags: cli, freedesktop, system.
- [xdg-ninja](https://www.automicvault.com/pkg/brew/xdg-ninja/) - Shares av.db curated category or tags: cli, system, xdg.
- [abduco](https://www.automicvault.com/pkg/brew/abduco/) - Shares av.db curated category or tags: cli, system.
- [dbus-glib](https://www.automicvault.com/pkg/brew/dbus-glib/) - Local package facts share a topical domain. Shared terms: cli, gettext, glib, system.
- [dbus](https://www.automicvault.com/pkg/brew/dbus/) - Local package facts share a topical domain. Shared terms: cli, desktop, system, update.

## Combined YAML source

View the package source record on GitHub. [combined/desktop-file-utils.yml](https://github.com/automic-vault/db/blob/main/combined/desktop-file-utils.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
