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

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

## 安装

```sh
sudo av install brew:gcab
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gcab
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gcab
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install gcab
```

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

- dnf (92%):

```sh
sudo dnf install gcab
```

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

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

- pacman (92%):

```sh
sudo pacman -S gcab
```

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

- zypper (92%):

```sh
sudo zypper install gcab
```

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

## 软件包事实

- **软件包键:** brew:gcab
- **软件包管理器:** Homebrew
- **版本:** 1.6
- **来源摘要:** Windows installer (.MSI) tool
- **主页:** <https://wiki.gnome.org/msitools>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gcab (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

gcab is a GNOME-hosted command-line tool and GObject library for creating Microsoft Cabinet files. In package-manager culture it is usually encountered near msitools, libgsf, Wine-derived Windows Installer tooling, and cross-platform packaging workflows.

### 项目历史

The gcab repository describes GCab as a GObject library to create cabinet files. The broader GNOME msitools project describes its tool family as programs for inspecting and building Windows Installer files, based on libmsi, which in turn is a portable subset of Wine's Windows Installer implementation.

### 采用历史

Official GitLab tags show gcab releases from early 2013 through the 1.x series, with v1.0 tagged in January 2018 and v1.6 tagged in July 2023. That release pattern places gcab among the small infrastructure packages that desktop distributions carry because higher-level Windows packaging tools depend on them.

### 使用方式

The package provides the gcab command for cabinet archive work and the libgcab library interface. It is most relevant where Unix-like build systems need to assemble or inspect Windows installer-related artifacts without using native Windows tooling.

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

gcab matters to package maintainers because Cabinet files are a Windows packaging primitive, while GNOME's msitools stack makes those formats scriptable from Unix packaging pipelines. It is a small package, but it sits at the awkward boundary between Linux build systems and Windows installer formats.

### 时间线

- 2013: Early gcab 0.x tags published in GNOME GitLab history.
- 2018: gcab v1.0 tagged.
- 2023: gcab v1.6 tagged.

### Related projects

- Related official GNOME projects include msitools and libgsf; msitools also documents its relationship to Wine's Windows Installer implementation and WiX-like tooling.

### 来源

- <https://gitlab.gnome.org/GNOME/gcab>
- <https://gitlab.gnome.org/GNOME/gcab/-/raw/master/README.md>
- <https://gitlab.gnome.org/GNOME/gcab/-/tags>
- <https://gitlab.gnome.org/GNOME/msitools>
- <https://gitlab.gnome.org/GNOME/msitools/-/raw/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - gcab - 1.6-1+b3: normalized package name match | Debian stable package indexes: gcab from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Microsoft Cabinet file manipulation tool | https://wiki.gnome.org/msitools
- Debian apt - gir1.2-gcab-1.0 - 1.6-1+b3: normalized package name match | Debian stable package indexes: gir1.2-gcab-1.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Microsoft Cabinet file manipulation library - gir bindings | https://wiki.gnome.org/msitools
- Debian apt - libgcab-1.0-0 - 1.6-1+b3: normalized package name match | Debian stable package indexes: libgcab-1.0-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Microsoft Cabinet file manipulation library | https://wiki.gnome.org/msitools
- Debian apt - libgcab-dev - 1.6-1+b3: normalized package name match | Debian stable package indexes: libgcab-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Microsoft Cabinet file manipulation library - development files | https://wiki.gnome.org/msitools
- Debian apt - libgcab-doc - 1.6-1: normalized package name match | Debian stable package indexes: libgcab-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Microsoft Cabinet file manipulation library - documentation | https://wiki.gnome.org/msitools
- Debian apt - libgcab-tests - 1.6-1+b3: normalized package name match | Debian stable package indexes: libgcab-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Microsoft Cabinet file manipulation library - as-installed tests | https://wiki.gnome.org/msitools
- Nix - gcab: normalized package name match | nixpkgs package indexes: pkgs/by-name/gc/gcab/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gcab - 1.6-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcab from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Microsoft Cabinet file manipulation tool | https://wiki.gnome.org/msitools
- Ubuntu apt - gir1.2-gcab-1.0 - 1.6-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-gcab-1.0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Microsoft Cabinet file manipulation library - gir bindings | https://wiki.gnome.org/msitools
- Ubuntu apt - libgcab-1.0-0 - 1.6-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgcab-1.0-0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Microsoft Cabinet file manipulation library | https://wiki.gnome.org/msitools
- Ubuntu apt - libgcab-dev - 1.6-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgcab-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Microsoft Cabinet file manipulation library - development files | https://wiki.gnome.org/msitools
- Ubuntu apt - libgcab-doc - 1.6-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgcab-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Microsoft Cabinet file manipulation library - documentation | https://wiki.gnome.org/msitools
- Ubuntu apt - libgcab-tests - 1.6-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgcab-tests from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Microsoft Cabinet file manipulation library - as-installed tests | https://wiki.gnome.org/msitools
- dnf - gcab - 1.6-12.fc45: normalized package name match | Fedora Rawhide package metadata: gcab from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Cabinet file library and tool | http://ftp.gnome.org/pub/GNOME/sources/gcab
- dnf - libgcab1 - 1.6-12.fc45: normalized package name match | Fedora Rawhide package metadata: libgcab1 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Library to create Cabinet archives | http://ftp.gnome.org/pub/GNOME/sources/gcab
- dnf - libgcab1-devel - 1.6-12.fc45: normalized package name match | Fedora Rawhide package metadata: libgcab1-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files to create Cabinet archives | http://ftp.gnome.org/pub/GNOME/sources/gcab


## Combined YAML source

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