# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 desktop-file-utils

查看 desktop-file-utils 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

- MacPorts (94%):

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

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

- Nix (92%):

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

  证据: 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
```

  证据: 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
```

  证据: openSUSE Tumbleweed package metadata: desktop-file-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:desktop-file-utils
- **软件包管理器:** Homebrew
- **版本:** 0.28
- **来源摘要:** Command-line utilities for working with desktop entries
- **主页:** <https://wiki.freedesktop.org/www/Software/desktop-file-utils/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- desktop-file-edit (别名)
- desktop-file-install (别名)
- desktop-file-validate (别名)
- update-desktop-database (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.28
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- 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-8.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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.4: normalized package name match | openSUSE Tumbleweed package metadata: desktop-file-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
