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

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

## 安装

```sh
sudo av install brew:openslide
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install openslide
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install openslide
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install openslide
```

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

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

- pacman (92%):

```sh
sudo pacman -S openslide
```

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

- Debian apt (92%):

```sh
sudo apt install libopenslide-dev
```

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

- zypper (92%):

```sh
sudo zypper install libopenslide-devel
```

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

## 软件包事实

- **软件包键:** brew:openslide
- **软件包管理器:** Homebrew
- **版本:** 4.0.1
- **来源摘要:** C library to read whole-slide images (a.k.a. virtual slides)
- **主页:** <https://openslide.org/>
- **仓库:** <https://github.com/openslide/openslide>
- **最后更新:** 2026-06-08T11:02:48Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- openslide-quickhash1sum (别名)
- openslide-show-properties (别名)
- openslide-write-png (别名)
- slidetool (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

OpenSlide is an LGPL C library and small CLI toolkit for reading whole-slide images, also called virtual slides. It abstracts scanner/vendor file formats into a simple tiled image API for digital pathology, computational pathology, and microscopy workflows.

### 项目历史

The OpenSlide GitHub repository was created in August 2010. A 2013 Journal of Pathology Informatics paper presented OpenSlide as a vendor-neutral C library for reading and manipulating digital slides from diverse vendor formats, motivated by the lack of a universal widespread format for whole-slide images.

The project grew into a small ecosystem with official Python and Java bindings. The website describes the C library, bindings, command-line tools, supported vendor formats, and LGPL-2.1 licensing, while the Python documentation explains why ordinary image libraries struggle with slides that can expand to tens of gigabytes.

### 采用历史

OpenSlide became a common interoperability layer for open source digital pathology software because it hides vendor-specific storage details behind one API. Its support matrix includes Aperio, DICOM, Hamamatsu, Leica, MIRAX, Philips, Sakura, Ventana, Zeiss, generic tiled TIFF, and other formats documented by the project.

The library is packaged widely across Homebrew, Debian, Ubuntu, Fedora, Arch, Nix, MacPorts, and other distributions. That distribution breadth matters for scientific workflows, where Python packages, notebooks, image pipelines, and lab workstations often need the same native C library available underneath language bindings.

### 使用方式

Applications use OpenSlide to query slide dimensions and metadata, choose pyramid levels, read rectangular regions, generate thumbnails or Deep Zoom tiles, and avoid loading an entire slide into memory. The command-line tools expose common inspection and conversion tasks such as showing slide properties, writing PNG regions, and calculating quickhash values.

The API is intentionally narrow: it opens a slide, exposes properties and level information, and reads image regions. That simplicity is what lets higher-level packages in Python, Java, MATLAB integrations, and web viewers build digital pathology workflows over proprietary vendor data.

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

OpenSlide is package-significant because it is a native library that many language packages quietly depend on. The Homebrew formula is not just an executable install; it supplies the C ABI that Python wheels, scientific applications, and downstream pathology tools expect to find.

It also illustrates why packaging scientific file-format libraries is hard: the value is not a flashy CLI but stable decoding of many large, vendor-specific, tiled image formats across operating systems.

### 时间线

- 2010-08-09: The public GitHub repository was created.
- 2013-09-27: The OpenSlide design and implementation paper was published in Journal of Pathology Informatics.
- OpenSlide 3.x: The C API exposed standardized properties such as vendor, quickhash, microns-per-pixel, and objective power across supported formats.
- OpenSlide 4.x: The project continued publishing C library releases along with Python and Java bindings.

### Related projects

- Related projects include OpenSlide Python, OpenSlide Java, Deep Zoom viewers, digital pathology analysis pipelines, DICOM whole-slide imaging work, Bio-Formats-style microscopy tooling, and downstream packages that bind to the native OpenSlide C library.

### 来源

- <https://api.github.com/repos/openslide/openslide>
- <https://formulae.brew.sh/formula/openslide>
- <https://github.com/openslide/openslide>
- <https://openslide.org/>
- <https://openslide.org/api/openslide_8h.html>
- <https://openslide.org/api/python/>
- <https://openslide.org/docs/newformat/>
- <https://pmc.ncbi.nlm.nih.gov/articles/PMC3815078/>
- <https://pubmed.ncbi.nlm.nih.gov/24244884/>


## 安全说明

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

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

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

- Debian apt - libopenslide-dev - 3.4.1+dfsg-7+deb13u1: normalized package name match | Debian stable package indexes: libopenslide-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for the OpenSlide library | https://openslide.org
- Debian apt - libopenslide0 - 3.4.1+dfsg-7+deb13u1: normalized package name match | Debian stable package indexes: libopenslide0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for reading whole slide image files | https://openslide.org
- Debian apt - openslide-tools - 3.4.1+dfsg-7+deb13u1: normalized package name match | Debian stable package indexes: openslide-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Manipulation and conversion tools for OpenSlide | https://openslide.org
- Nix - openslide: normalized package name match | nixpkgs package indexes: pkgs/by-name/op/openslide/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libopenslide-dev - 3.4.1+dfsg-7build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libopenslide-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for the OpenSlide library | https://openslide.org
- Ubuntu apt - libopenslide0 - 3.4.1+dfsg-7build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libopenslide0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for reading whole slide image files | https://openslide.org
- Ubuntu apt - openslide-tools - 3.4.1+dfsg-7build2: normalized package name match | Ubuntu 24.04 LTS package indexes: openslide-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Manipulation and conversion tools for OpenSlide | https://openslide.org
- dnf - openslide - 4.0.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: openslide from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | C library for reading virtual slides | https://openslide.org/
- dnf - openslide-devel - 4.0.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: openslide-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for openslide | https://openslide.org/
- dnf - openslide-tools - 4.0.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: openslide-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Command line tools for openslide | https://openslide.org/
- pacman - openslide - 4.0.1-2: normalized package name match | Arch Linux sync databases: openslide from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | C library for reading virtual slide images | https://openslide.org/
- zypper - libopenslide-devel - 3.4.1-2.33: normalized package name match | openSUSE Tumbleweed package metadata: libopenslide-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for openslide | http://openslide.org/
- zypper - libopenslide0 - 3.4.1-2.33: normalized package name match | openSUSE Tumbleweed package metadata: libopenslide0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | C library for reading virtual slides | http://openslide.org/
- zypper - openslide-doc - 3.4.1-2.33: normalized package name match | openSUSE Tumbleweed package metadata: openslide-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Documentation for openslide | http://openslide.org/
- zypper - openslide-tools - 3.4.1-2.33: normalized package name match | openSUSE Tumbleweed package metadata: openslide-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Command line tools for openslide | http://openslide.org/
- MacPorts - openslide: normalized package name match | MacPorts ports tree: graphics/openslide/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/openslide.yml](https://github.com/mxcl/pkgdb/blob/main/combined/openslide.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
