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

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install appstream
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install appstream
```

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

### Linux

- apk (92%):

```sh
sudo apk add appstream
```

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

- Debian apt (92%):

```sh
sudo apt install appstream
```

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

- dnf (92%):

```sh
sudo dnf install appstream
```

  证据: Fedora Rawhide package metadata: appstream 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#appstream
```

  证据: nixpkgs package indexes: appstream from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

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

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

- zypper (92%):

```sh
sudo zypper install AppStream
```

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

## 软件包事实

- **软件包键:** brew:appstream
- **软件包管理器:** Homebrew
- **版本:** 1.1.5
- **来源摘要:** Tools and libraries to work with AppStream metadata
- **主页:** <https://www.freedesktop.org/wiki/Distributions/AppStream/>
- **仓库:** <https://github.com/ximion/appstream>
- **最后更新:** 2026-07-25T00:57:08Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- appstreamcli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

AppStream is the freedesktop.org specification, reference implementation, and CLI/tooling for distro-agnostic software component metadata. It standardizes MetaInfo XML, catalog XML/YAML, validation, metadata composition, and query tooling used by Linux software centers and repositories.

### 项目历史

The freedesktop.org project page describes AppStream as a cross-distribution effort to standardize software component metadata and provide the foundation for software-center applications. It points to the specification, mailing list, release tarballs, and the GitHub development repository.

The official documentation credits Matthias Klumpp as author and lists Michael Vogt, Richard Hughes, and Vincent Untz as contributors. It says the documentation covers a C/GLib reference implementation of the full specification and tooling such as `appstreamcli`.

The upstream NEWS file records AppStream 0.1.0 in October 2012. The freedesktop wiki notes an initial AppStream meeting in 2011 in its attic, which places the effort in the early Linux software-center era.

### 采用历史

AppStream adoption followed the need for application-centric package metadata in Linux distributions. Traditional package metadata tells a package manager what files and dependencies exist; AppStream adds names, summaries, screenshots, icons, release data, content metadata, firmware and driver component metadata, and a normalized view for graphical software catalogs.

The project became important to distributions, Flatpak-like ecosystems, upstream application authors, and desktop software centers because it gives them a shared metadata language rather than one distro-specific app-store format.

The README describes AppStream as part of freedesktop.org and lists tools for validation, data verification, diagnostics, and catalog composition. That made the CLI useful both in distro build infrastructure and in upstream CI checks for MetaInfo files.

### 使用方式

Upstream projects write MetaInfo XML files for applications, fonts, codecs, firmware, drivers, add-ons, and other components. Distributions package or compose those files into AppStream catalog metadata in XML or YAML.

Maintainers commonly use `appstreamcli validate --pedantic /path/to/metadata.xml` to check metadata and `appstreamcli compose` to build catalogs from directory trees. Consumers such as software centers query the resulting metadata through libappstream.

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

AppStream is package metadata with UX consequences. It is why distro repositories can feed graphical app stores with screenshots, localized descriptions, component IDs, content ratings, release notes, and installable firmware/driver metadata without each frontend inventing a private database.

For package nerds, the interesting part is that AppStream sits between upstream source releases, distro package builds, repository metadata, and desktop UX. A broken AppStream ID or invalid MetaInfo file can affect discoverability even when the package itself installs correctly.

### 时间线

- 2011: freedesktop wiki references initial AppStream meeting materials in the project attic.
- 2012: upstream NEWS records AppStream 0.1.0.
- 2013: freedesktop wiki page creation date appears in the page metadata.
- 2015: NEWS records 0.8.x releases during early distribution adoption.
- 2026: official documentation identifies AppStream 1.0 documentation published in June 2026.

### Related projects

- appstream-glib is the older GLib helper library and builder toolchain now in maintenance mode.
- appstream-generator is listed by upstream as a distribution metadata generator using libappstream-compose internally.
- DEP-11 is the Debian-derived YAML catalog metadata format described by the AppStream specification.

### 来源

- <https://github.com/ximion/appstream#readme>
- <https://github.com/ximion/appstream/blob/main/NEWS>
- <https://www.freedesktop.org/software/appstream/docs/>
- <https://www.freedesktop.org/wiki/Distributions/AppStream/>


## 安全说明

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

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

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

- Debian apt - appstream - 1.0.5-1: normalized package name match | Debian stable package indexes: appstream from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Software component metadata management | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - appstream-compose - 1.0.5-1: normalized package name match | Debian stable package indexes: appstream-compose from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Compose metadata catalogs from directory trees | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - appstream-doc - 1.0.5-1: normalized package name match | Debian stable package indexes: appstream-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Developer documentation for AppStream | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - apt-config-icons - 1.0.5-1: normalized package name match | Debian stable package indexes: apt-config-icons from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | APT configuration snippet to enable icon downloads | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - apt-config-icons-hidpi - 1.0.5-1: normalized package name match | Debian stable package indexes: apt-config-icons-hidpi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | APT configuration snippet to enable HiDPI icon downloads | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - apt-config-icons-large - 1.0.5-1: normalized package name match | Debian stable package indexes: apt-config-icons-large from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | APT configuration snippet to enable large icon downloads | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - apt-config-icons-large-hidpi - 1.0.5-1: normalized package name match | Debian stable package indexes: apt-config-icons-large-hidpi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | APT configuration snippet to enable large HiDPI icon downloads | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - gir1.2-appstream-1.0 - 1.0.5-1: normalized package name match | Debian stable package indexes: gir1.2-appstream-1.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library to access AppStream services (introspection data) | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - gir1.2-appstreamcompose-1.0 - 1.0.5-1: normalized package name match | Debian stable package indexes: gir1.2-appstreamcompose-1.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Building blocks to compose AppStream metadata (introspection data) | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - libappstream-compose-dev - 1.0.5-1: normalized package name match | Debian stable package indexes: libappstream-compose-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Building blocks to compose AppStream metadata (development files) | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - libappstream-compose0 - 1.0.5-1: normalized package name match | Debian stable package indexes: libappstream-compose0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Building blocks to compose AppStream metadata | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - libappstream-dev - 1.0.5-1: normalized package name match | Debian stable package indexes: libappstream-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library to access AppStream services (development files) | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - libappstream5 - 1.0.5-1: normalized package name match | Debian stable package indexes: libappstream5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library to access AppStream services | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - libappstreamqt-dev - 1.0.5-1: normalized package name match | Debian stable package indexes: libappstreamqt-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Qt6 library to access AppStream services (development files) | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - libappstreamqt3 - 1.0.5-1: normalized package name match | Debian stable package indexes: libappstreamqt3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Qt6 library to access AppStream services | https://www.freedesktop.org/wiki/Distributions/AppStream/
- Debian apt - libappstreamqt5-3 - 1.0.5-1: normalized package name match | Debian stable package indexes: libappstreamqt5-3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Qt5 library to access AppStream services | https://www.freedesktop.org/wiki/Distributions/AppStream/


## Combined YAML source

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