# 使用 Homebrew, dnf 安装 source-to-image

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

## 安装

```sh
sudo av install brew:source-to-image
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install source-to-image
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install source-to-image
```

  证据: Fedora Rawhide package metadata: source-to-image from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:source-to-image
- **软件包管理器:** Homebrew
- **版本:** 1.6.3
- **来源摘要:** Tool for building source and injecting into docker images
- **主页:** <https://github.com/openshift/source-to-image>
- **仓库:** <https://github.com/openshift/source-to-image>
- **最后更新:** 2026-07-23T09:57:54Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- s2i (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Source-to-Image, commonly `s2i`, is OpenShift's CLI and workflow for building reproducible container images by injecting application source into builder images rather than requiring every application repository to carry its own Dockerfile.

### 项目历史

The GitHub repository was created in January 2014. Public releases show a 0.1 release in January 2015, a 1.0 release in June 2015, and continuing maintenance through the 1.x series.

The README frames S2I as both a toolkit and workflow. Its design centers on builder images with standard scripts such as `assemble`, `run`, optional `save-artifacts`, and optional `usage`, plus source-side files like `.s2iignore` and `.s2i/environment`.

### 采用历史

S2I is tied to OpenShift's application-build model and has been packaged for Homebrew and Fedora/DNF according to the input package metadata. Its README documents installation via Go, Homebrew, downloadable releases, and platform-specific binaries.

### 使用方式

The canonical workflow is `s2i build <source location> <builder image> [tag]`, followed by running the produced container image. The CLI also includes commands such as `create`, `rebuild`, `generate`, `usage`, `version`, and `help`.

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

Package nerds care because S2I sits at the boundary between language packaging, container image construction, and platform policy. It encodes buildpacks-like conventions in simple executable scripts while still producing ordinary container images.

### 时间线

- 2014: OpenShift source-to-image repository created.
- 2015: v0.1 public release published in January.
- 2015: v1.0 public release published in June.
- 2025: v1.5.0 release updated build containers and Docker dependencies.
- 2026: v1.6.x releases continued dependency and image maintenance.

### Related projects

- OpenShift uses S2I as part of its source-to-container build workflow.
- Builder images provide the `assemble`, `run`, `save-artifacts`, and `usage` scripts consumed by the `s2i` CLI.

### 来源

- <https://github.com/openshift/source-to-image#readme>
- <https://github.com/openshift/source-to-image/blob/master/docs/cli.md>
- <https://github.com/openshift/source-to-image/releases>


## 安全说明

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

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

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

- dnf - source-to-image - 1.5.1-4.fc45: normalized package name match | Fedora Rawhide package metadata: source-to-image from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A tool for building artifacts from source and injecting into container images | https://github.com/openshift/source-to-image


## Combined YAML source

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