# 使用 Homebrew, apk, MacPorts, Nix, pacman, zypper, apt, dnf 安装 appstream-glib

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

## 安装

```sh
sudo av install brew:appstream-glib
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install appstream-glib
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install appstream-glib
```

  证据: MacPorts ports tree: devel/appstream-glib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add appstream-glib
```

  证据: Alpine Linux edge package indexes: appstream-glib from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#appstream-glib
```

  证据: nixpkgs package indexes: pkgs/by-name/ap/appstream-glib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S appstream-glib
```

  证据: Arch Linux sync databases: appstream-glib from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install appstream-glib
```

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

- Debian apt (92%):

```sh
sudo apt install appstream-glib-doc
```

  证据: Debian stable package indexes: appstream-glib-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install appstream-compose
```

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

## 软件包事实

- **软件包键:** brew:appstream-glib
- **软件包管理器:** Homebrew
- **版本:** 0.8.4
- **来源摘要:** Helper library for reading and writing AppStream metadata
- **主页:** <https://github.com/hughsie/appstream-glib>
- **仓库:** <https://github.com/hughsie/appstream-glib>
- **最后更新:** 2026-07-27T15:09:00Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- appstream-compose (别名)
- appstream-util (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

AppStream-Glib is a GLib/GObject library and tool suite for reading, writing, validating, and composing AppStream metadata. It historically provided appstream-util, appstream-compose, and appstream-builder workflows used by Linux software-center metadata pipelines.

### 项目历史

The upstream NEWS file records AppStream-Glib 0.1.0 in March 2014. The README describes a library for compressed AppStream XML, Debian DEP-11 YAML, application-store search, screenshot and release metadata, and locale-aware application data.

The repository now warns that appstream-glib is in heavy maintenance mode and recommends using the AppStream reference implementation instead. That warning captures the project's historical role: important infrastructure while AppStream metadata practices were settling, but no longer the preferred new dependency.

### 采用历史

AppStream-Glib was closely tied to GNOME Software and Fedora-style metadata generation. Its appstream-builder documentation describes extracting application metadata from package trees, writing XML archives and icon tarballs, and injecting that data into repository metadata with modifyrepo.

The tool was adopted by Linux distributions because software centers needed app-centric metadata that traditional package metadata did not provide: icons, screenshots, localized descriptions, release notes, content ratings, and validation rules.

### 使用方式

Packagers and distribution maintainers used appstream-util for validation/conversion and appstream-builder or appstream-compose-style flows to generate repository metadata from packages and upstream AppData/MetaInfo files.

The README's builder example shows a package-directory scan producing AppStream XML, failed/ignored metadata reports, and icon archives that can be installed into repository metadata so software-center applications can display richer package information.

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

AppStream-Glib is one of the utilities that made package repositories feel less like file indexes and more like app stores. It matters to package nerds because it bridges distro package metadata, desktop files, AppData/MetaInfo XML, screenshots, icons, and software-center UX.

Its maintenance-mode status is also significant: modern packagers should usually prefer the main AppStream project, but historical build scripts and distribution metadata pipelines may still contain appstream-glib commands.

### 时间线

- 2014: NEWS records AppStream-Glib 0.1.0.
- 2015: 0.5.x releases show rapid development around metadata and builder behavior.
- 2022: 0.8.0 ports from libsoup to libcurl and continues validation updates.
- 2024: 0.8.3 release continues maintenance fixes.

### Related projects

- AppStream is the specification and current reference implementation recommended by upstream.
- GNOME Software and distribution software centers are primary consumers of the metadata AppStream-Glib helped generate.
- DEP-11 is the Debian-style YAML metadata format the README says appstream-glib can read.

### 来源

- <https://github.com/hughsie/appstream-glib#readme>
- <https://github.com/hughsie/appstream-glib/blob/main/NEWS>


## 安全说明

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

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

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

- Debian apt - appstream-glib-doc - 0.8.3-1: normalized package name match | Debian stable package indexes: appstream-glib-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Developer documentation for the libappstream-glib library | https://github.com/hughsie/appstream-glib
- Debian apt - appstream-util - 0.8.3-1: normalized package name match | Debian stable package indexes: appstream-util from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Utility to work with AppStream metadata | https://github.com/hughsie/appstream-glib
- Debian apt - gir1.2-appstreamglib-1.0 - 0.8.3-1: normalized package name match | Debian stable package indexes: gir1.2-appstreamglib-1.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GObject introspection data for the libappstream-glib library | https://github.com/hughsie/appstream-glib
- Debian apt - libappstream-glib-dev - 0.8.3-1: normalized package name match | Debian stable package indexes: libappstream-glib-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNOME library to access AppStream services (development files) | https://github.com/hughsie/appstream-glib
- Debian apt - libappstream-glib8 - 0.8.3-1: normalized package name match | Debian stable package indexes: libappstream-glib8 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNOME library to access AppStream services | https://github.com/hughsie/appstream-glib
- Nix - appstream-glib: normalized package name match | nixpkgs package indexes: pkgs/by-name/ap/appstream-glib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - appstream-glib-doc - 0.8.2-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: appstream-glib-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Developer documentation for the libappstream-glib library | https://github.com/hughsie/appstream-glib
- Ubuntu apt - appstream-util - 0.8.2-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: appstream-util from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Utility to work with AppStream metadata | https://github.com/hughsie/appstream-glib
- Ubuntu apt - gir1.2-appstreamglib-1.0 - 0.8.2-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-appstreamglib-1.0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GObject introspection data for the libappstream-glib library | https://github.com/hughsie/appstream-glib
- Ubuntu apt - libappstream-glib-dev - 0.8.2-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libappstream-glib-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNOME library to access AppStream services (development files) | https://github.com/hughsie/appstream-glib
- Ubuntu apt - libappstream-glib8 - 0.8.2-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libappstream-glib8 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNOME library to access AppStream services | https://github.com/hughsie/appstream-glib
- apk - appstream-glib - 0.8.3-r0: normalized package name match | Alpine Linux edge package indexes: appstream-glib from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for AppStream metadata | https://people.freedesktop.org/~hughsient/appstream-glib/
- apk - appstream-glib-bash-completion - 0.8.3-r0: normalized package name match | Alpine Linux edge package indexes: appstream-glib-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for appstream-glib | https://people.freedesktop.org/~hughsient/appstream-glib/
- apk - appstream-glib-builder - 0.8.3-r0: normalized package name match | Alpine Linux edge package indexes: appstream-glib-builder from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library and command line tools for building AppStream metadata | https://people.freedesktop.org/~hughsient/appstream-glib/
- apk - appstream-glib-dbg - 0.8.3-r0: normalized package name match | Alpine Linux edge package indexes: appstream-glib-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for AppStream metadata (debug symbols) | https://people.freedesktop.org/~hughsient/appstream-glib/
- apk - appstream-glib-dev - 0.8.3-r0: normalized package name match | Alpine Linux edge package indexes: appstream-glib-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for AppStream metadata (development files) | https://people.freedesktop.org/~hughsient/appstream-glib/


## Combined YAML source

View the package source record on GitHub. [combined/appstream-glib.yml](https://github.com/mxcl/pkgdb/blob/main/combined/appstream-glib.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
