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

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

## 安装

```sh
sudo av install brew:libgsf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libgsf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libgsf
```

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

### Linux

- apk (92%):

```sh
sudo apk add libgsf
```

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

- dnf (92%):

```sh
sudo dnf install libgsf
```

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

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

- pacman (92%):

```sh
sudo pacman -S libgsf
```

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

- Debian apt (92%):

```sh
sudo apt install gir1.2-gsf-1
```

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

- zypper (92%):

```sh
sudo zypper install gsf-office-thumbnailer
```

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

## 软件包事实

- **软件包键:** brew:libgsf
- **软件包管理器:** Homebrew
- **版本:** 1.14.58
- **来源摘要:** I/O abstraction library for dealing with structured file formats
- **主页:** <https://gitlab.gnome.org/GNOME/libgsf>
- **仓库:** <https://github.com/GNOME/libgsf>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gsf (别名)
- gsf-office-thumbnailer (别名)
- gsf-vba-dump (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

libgsf is the GNOME Structured File Library, an I/O abstraction for compound and structured file formats such as Microsoft OLE2, ZIP/JAR, gzip, bzip, OpenDocument-related streams, metadata, and thumbnails. It came out of Gnumeric's need for maintainable spreadsheet file-format infrastructure.

### 项目历史

The libgsf README says the project was started by Jody Goldberg and aims to provide an efficient, extensible I/O abstraction for dealing with different structured file formats. The GTK-Doc manual adds that it began in 2002 as part of the Gnumeric project, replacing libole2 for Microsoft Excel file handling because libole2 had become difficult to maintain and generalize.

The GitLab repository history includes an initial backup commit dated 2002-05-23. Since then, the 1.14 series has continued as a quiet GNOME infrastructure library with fixes for OLE2 edge cases, large files, ZIP64 behavior, thumbnailing, introspection, fuzzed-file crashes, and metadata handling.

### 采用历史

libgsf was adopted through GNOME Office and file-format tooling rather than as a famous end-user command. It is infrastructure for applications that need structured file reading and writing without duplicating OLE, ZIP, compression, metadata, and stream code.

The Homebrew package exposes command-line tools such as gsf, gsf-office-thumbnailer, and gsf-vba-dump, showing the library's practical packaging surface: archive-like inspection, office document thumbnails, and VBA extraction/debugging around compound document formats.

### 使用方式

Developers use libgsf through its C API to read and write structured files and streams. The reference manual groups APIs around basic I/O, stream sources, ZIP files, compression, MS OLE2, metadata, OASIS Open Document support, and related utilities.

Packagers ship it for applications that depend on GNOME/GLib-style structured file handling. Its release notes show continued attention to malformed files and very large OLE/ZIP cases, which are exactly the edge cases shared libraries are meant to centralize.

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

libgsf is a small dependency with a long tail: most users do not ask for it by name, but office-file importers, thumbnailers, and data tools benefit from one shared implementation of gnarly container formats.

It is package-nerd significant because it demonstrates the GNOME/GLib style of extracting reusable infrastructure from an application. Gnumeric needed better Excel container handling; the result became a general library that distributions can patch, fuzz, and update once.

### 时间线

- 2002: The reference manual says GSF started as part of Gnumeric to replace libole2 for Microsoft Excel file handling.
- 2002-05-23: The GitLab repository records the initial backup commit.
- 2016: Release 1.14.38 fixed BSD test compatibility and ZIP64 behavior.
- 2024: Release 1.14.53 fixed integer overflows affecting memory allocation and improved OLE/OpenDocument handling.
- 2026: Release 1.14.57 fixed problems with OLE files larger than 4 GB and improved gzip, bzip, and ZIP handling for 4 GB and larger reads and writes.

### Related projects

- Gnumeric is the spreadsheet project from which libgsf emerged.
- libole2 is the older library that GSF replaced for Gnumeric's Excel file handling.
- GLib, GNOME, GTK-Doc, OLE2, ZIP, OpenDocument, and office thumbnailing tools are part of the surrounding ecosystem.

### 来源

- <https://gitlab.gnome.org/GNOME/libgsf>
- <https://gitlab.gnome.org/GNOME/libgsf/-/raw/master/NEWS>
- <https://gitlab.gnome.org/GNOME/libgsf/-/raw/master/README>
- <https://gnome.pages.gitlab.gnome.org/libgsf/api/index.html>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

- Debian apt - gir1.2-gsf-1 - 1.14.53-1: normalized package name match | Debian stable package indexes: gir1.2-gsf-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GObject introspection data for the Structured File Library | http://projects.gnome.org/libgsf/
- Debian apt - libgsf-1-114 - 1.14.53-1: normalized package name match | Debian stable package indexes: libgsf-1-114 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Structured File Library - runtime version | http://projects.gnome.org/libgsf/
- Debian apt - libgsf-1-common - 1.14.53-1: normalized package name match | Debian stable package indexes: libgsf-1-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Structured File Library - common files | http://projects.gnome.org/libgsf/
- Debian apt - libgsf-1-dev - 1.14.53-1: normalized package name match | Debian stable package indexes: libgsf-1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Structured File Library - development files | http://projects.gnome.org/libgsf/
- Debian apt - libgsf-bin - 1.14.53-1: normalized package name match | Debian stable package indexes: libgsf-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Structured File Library - programs | http://projects.gnome.org/libgsf/
- Nix - libgsf: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libgsf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gir1.2-gsf-1 - 1.14.51-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-gsf-1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GObject introspection data for the Structured File Library | http://projects.gnome.org/libgsf/
- Ubuntu apt - libgsf-1-114 - 1.14.51-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgsf-1-114 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Structured File Library - runtime version | http://projects.gnome.org/libgsf/
- Ubuntu apt - libgsf-1-common - 1.14.51-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgsf-1-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Structured File Library - common files | http://projects.gnome.org/libgsf/
- Ubuntu apt - libgsf-1-dev - 1.14.51-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgsf-1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Structured File Library - development files | http://projects.gnome.org/libgsf/
- Ubuntu apt - libgsf-bin - 1.14.51-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgsf-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Structured File Library - programs | http://projects.gnome.org/libgsf/
- apk - libgsf - 1.14.58-r0: normalized package name match | Alpine Linux edge package indexes: libgsf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Utility library for reading and writing structured file formats | https://gitlab.gnome.org/GNOME/libgsf
- apk - libgsf-dev - 1.14.58-r0: normalized package name match | Alpine Linux edge package indexes: libgsf-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Utility library for reading and writing structured file formats (development files) | https://gitlab.gnome.org/GNOME/libgsf
- apk - libgsf-doc - 1.14.58-r0: normalized package name match | Alpine Linux edge package indexes: libgsf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Utility library for reading and writing structured file formats (documentation) | https://gitlab.gnome.org/GNOME/libgsf
- apk - libgsf-lang - 1.14.58-r0: normalized package name match | Alpine Linux edge package indexes: libgsf-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Languages for package libgsf | https://gitlab.gnome.org/GNOME/libgsf
- dnf - libgsf - 1.14.58-3.fc45: normalized package name match | Fedora Rawhide package metadata: libgsf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GNOME Structured File library | https://gitlab.gnome.org/GNOME/libgsf/


## Combined YAML source

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