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

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

## 安装

```sh
sudo av install brew:clinfo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clinfo
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add clinfo
```

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

- Debian apt (92%):

```sh
sudo apt install clinfo
```

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

- dnf (92%):

```sh
sudo dnf install clinfo
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#clinfo
```

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

- pacman (92%):

```sh
sudo pacman -S clinfo
```

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

- zypper (92%):

```sh
sudo zypper install clinfo
```

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

## 软件包事实

- **软件包键:** brew:clinfo
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clinfo>
- **版本:** 3.0.25.02.14
- **来源摘要:** Print information about OpenCL platforms and devices
- **主页:** <https://github.com/Oblomov/clinfo>
- **仓库:** <https://github.com/Oblomov/clinfo>
- **上游文档:** <https://github.com/Oblomov/clinfo>
- **许可证:** CC0-1.0
- **源码归档:** <https://github.com/Oblomov/clinfo/archive/refs/tags/3.0.25.02.14.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- clinfo (cli)
- clinfo (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 3.0.25.02.14
- 本地数据: OK
- 上游仓库: https://github.com/Oblomov/clinfo
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

clinfo is a small command-line diagnostic utility that enumerates OpenCL platforms and devices on a system. The official README says it was inspired by AMD's program of the same name and is written in pure C.

### 项目历史

The upstream repository was created in 2013 and has stayed intentionally simple: no autotools, CMake, meson, or ninja, just a Makefile and OpenCL headers/development files. The README frames that minimal build system as appropriate for a simple diagnostic program.

### 采用历史

The batch input lists clinfo across many package managers and distributions: apk, Homebrew, Debian, dnf, Nix, pacman, Ubuntu, and zypper. That breadth matches its role as a standard first diagnostic for OpenCL installation problems.

### 使用方式

The README describes use cases such as verifying that an OpenCL runtime is set up correctly, checking that an OpenCL development environment can build programs, and reporting actual device properties. Common options include -l for a compact device summary and -a to attempt properties that clinfo would otherwise consider unsupported.

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

clinfo is package-nerd significant less because of a dramatic project history and more because it is the canonical sanity-check binary for OpenCL packaging. Maintainers and users can install it quickly to distinguish broken ICD loader/runtime/header packaging from application-level GPU failures.

### 时间线

- 2013: Oblomov/clinfo GitHub repository created.
- 2010s-2020s: README documents POSIX, Android via Termux, macOS, and Windows build/use notes.
- 2026: Batch input lists clinfo in apk, Homebrew, Debian, dnf, Nix, pacman, Ubuntu, and zypper.

### Related projects

- clinfo is tied to the OpenCL ecosystem, including vendor OpenCL implementations, ICD loader packages such as ocl-icd, Khronos OpenCL headers, PoCL, and GPU compute applications that depend on a working OpenCL stack.

### 来源

- <https://github.com/Oblomov/clinfo#readme>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clinfo
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - clinfo - 3.0.25.02.14-1: normalized package name match | Debian stable package indexes: clinfo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Query OpenCL system information | https://github.com/Oblomov/clinfo
- Nix - clinfo: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/clinfo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - clinfo - 3.0.23.01.25-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: clinfo from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Query OpenCL system information | https://github.com/Oblomov/clinfo
- apk - clinfo - 3.0.23.01.25-r0: normalized package name match | Alpine Linux edge package indexes: clinfo from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Print all known information about all available OpenCL platforms and devices in the system | https://github.com/Oblomov/clinfo
- apk - clinfo-doc - 3.0.23.01.25-r0: normalized package name match | Alpine Linux edge package indexes: clinfo-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Print all known information about all available OpenCL platforms and devices in the system (documentation) | https://github.com/Oblomov/clinfo
- dnf - clinfo - 3.0.25.02.14-3.fc44: normalized package name match | Fedora Rawhide package metadata: clinfo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Enumerate OpenCL platforms and devices | https://github.com/Oblomov/clinfo
- pacman - clinfo - 3.0.25.02.14-1: normalized package name match | Arch Linux sync databases: clinfo from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Simple OpenCL application that enumerates all available platform and device properties | https://github.com/Oblomov/clinfo
- zypper - clinfo - 3.0.25.02.14-1.3: normalized package name match | openSUSE Tumbleweed package metadata: clinfo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Utility that reports status information for all installed OpenCL ICDs | https://github.com/Oblomov/clinfo/


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [cpufetch](https://www.automicvault.com/zh-hans/pkg/brew/cpufetch/) - Shares av.db curated category or tags: cli, hardware-info, system.
- [eatmemory](https://www.automicvault.com/zh-hans/pkg/brew/eatmemory/) - Shares av.db curated category or tags: cli, diagnostics, system.
- [gops](https://www.automicvault.com/zh-hans/pkg/brew/gops/) - Shares av.db curated category or tags: cli, diagnostics, system.
- [inxi](https://www.automicvault.com/zh-hans/pkg/brew/inxi/) - Shares av.db curated category or tags: cli, diagnostics, system.
- [lsof](https://www.automicvault.com/zh-hans/pkg/brew/lsof/) - Shares av.db curated category or tags: cli, diagnostics, system.
- [opencl-icd-loader](https://www.automicvault.com/zh-hans/pkg/brew/opencl-icd-loader/) - Shares av.db curated category or tags: cli, opencl, system.
- [vmtouch](https://www.automicvault.com/zh-hans/pkg/brew/vmtouch/) - Shares av.db curated category or tags: cli, diagnostics, system.
- [witr](https://www.automicvault.com/zh-hans/pkg/brew/witr/) - Shares av.db curated category or tags: cli, diagnostics, system.
- [archey4](https://www.automicvault.com/zh-hans/pkg/brew/archey4/) - Local package facts share a topical domain. Shared terms: cli, info, information, system.
- [cyme](https://www.automicvault.com/zh-hans/pkg/brew/cyme/) - Local package facts share a topical domain. Shared terms: cli, devices, hardware, system.

## Combined YAML source

View the package source record on GitHub. [combined/clinfo.yml](https://github.com/automic-vault/db/blob/main/combined/clinfo.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
