# 使用 Homebrew, dnf, MacPorts, Nix, zypper 安装 liboil

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

## 安装

```sh
sudo av install brew:liboil
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install liboil
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install liboil
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install liboil
```

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

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

- zypper (92%):

```sh
sudo zypper install liboil-0_3-0
```

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

## 软件包事实

- **软件包键:** brew:liboil
- **软件包管理器:** Homebrew
- **版本:** 0.3.17
- **来源摘要:** C library of simple functions optimized for various CPUs
- **主页:** <https://wiki.freedesktop.org/liboil/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- oil-bugreport (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

liboil, the Library of Optimized Inner Loops, is a freedesktop.org-era C library of simple CPU-optimized routines. It collected small loops such as array conversion, multiplication, summing, and other SIMD-friendly operations behind a reusable API.

### 项目历史

The project documentation describes liboil as a library of simple functions optimized for CPUs using techniques such as Altivec, MMX, and SSE. Its goal was to consolidate optimized inner-loop code that multimedia applications and libraries often carried privately.

The freedesktop.org download directory shows a compact release line from 0.2.0 and 0.3.x in 2005 through 0.3.17 in February 2010. After that period, Orc, the Oil Runtime Compiler, became the successor project for generating and executing SIMD-style inner loops.

### 采用历史

liboil mattered most in the multimedia and desktop stack, where many packages needed fast pixel, audio, or numeric loops but did not want to maintain architecture-specific assembly in every project.

Its package-manager life continued after active upstream development because older software still linked against liboil, while newer software increasingly moved to Orc or compiler/native SIMD approaches.

### 使用方式

Developers used liboil as a C library for optimized primitive operations. Package users mostly encountered it indirectly as a dependency, with oil-bugreport available as a diagnostic executable.

The library is relevant when building older multimedia stacks or software that still depends on the liboil API rather than Orc.

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

liboil is package-nerd interesting because it captures a transitional moment before widespread portable SIMD abstractions: projects wanted reusable CPU-specific inner loops, but compiler autovectorization and runtime SIMD libraries had not settled the problem.

Its replacement by Orc is also instructive. The successor moved from a collection of hand-optimized functions toward a small runtime compiler for array operations, which explains why liboil often remains only as a compatibility package.

### 时间线

- 2005: freedesktop.org download directory records liboil 0.2.0, 0.2.1, 0.2.2, and the early 0.3.x series.
- 2006: freedesktop.org download directory records releases through liboil 0.3.10.
- 2008: freedesktop.org download directory records liboil 0.3.13, 0.3.14, and 0.3.15.
- 2010: freedesktop.org download directory records liboil 0.3.17.
- 2010s: Orc is documented as the successor to liboil.

### Related projects

- Orc, the Oil Runtime Compiler, is documented by its project as the successor to liboil.
- GStreamer is closely related through Orc stewardship and through the multimedia use cases that made optimized inner loops valuable.
- Altivec, MMX, SSE, NEON, and similar SIMD instruction families are the hardware context behind liboil and Orc.

### 来源

- <https://cgit.freedesktop.org/liboil>
- <https://formulae.brew.sh/formula/liboil>
- <https://github.com/GStreamer/orc>
- <https://gstreamer.freedesktop.org/modules/orc.html>
- <https://liboil.freedesktop.org/download/>
- <https://liboil.freedesktop.org/wiki/>


## 安全说明

library-like package without higher-risk signals.

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

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

- Nix - liboil: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/liboil/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - liboil - 0.3.16-39.fc45: normalized package name match | Fedora Rawhide package metadata: liboil from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Library of Optimized Inner Loops, CPU optimized functions | http://liboil.freedesktop.org/
- dnf - liboil-devel - 0.3.16-39.fc45: normalized package name match | Fedora Rawhide package metadata: liboil-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files and static library for liboil | http://liboil.freedesktop.org/
- zypper - liboil-0_3-0 - 0.3.17-26.16: normalized package name match | openSUSE Tumbleweed package metadata: liboil-0_3-0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Library of Optimized Inner Loops | http://liboil.freedesktop.org/wiki/
- zypper - liboil-devel - 0.3.17-26.16: normalized package name match | openSUSE Tumbleweed package metadata: liboil-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Headers for the library of Optimized Inner Loops | http://liboil.freedesktop.org/wiki/
- zypper - liboil-doc - 0.3.17-26.16: normalized package name match | openSUSE Tumbleweed package metadata: liboil-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Documentation for the library of Optimized Inner Loops | http://liboil.freedesktop.org/wiki/
- MacPorts - liboil: normalized package name match | MacPorts ports tree: devel/liboil/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/liboil.yml](https://github.com/mxcl/pkgdb/blob/main/combined/liboil.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
