# 使用 Homebrew, apk, apt, Nix 安装 gosu

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

## 安装

```sh
sudo av install brew:gosu
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gosu
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gosu
```

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

- Debian apt (92%):

```sh
sudo apt install gosu
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gosu
```

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

## 软件包事实

- **软件包键:** brew:gosu
- **软件包管理器:** Homebrew
- **版本:** 1.18.7
- **来源摘要:** Pragmatic language for the JVM
- **主页:** <https://gosu-lang.github.io/>
- **仓库:** <https://github.com/gosu-lang/gosu-lang>
- **最后更新:** 2026-05-04T14:06:24Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gosu (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Gosu is a pragmatic statically typed programming language for the JVM. The official project pages describe it as designed for Java developers, with Java interoperability, type inference, enhancements, structural typing, lambdas, null-safety operators, program files, and support for scripting-style use through classpath statements and shebangs.

### 项目历史

Gosu originated in the Guidewire ecosystem and later became an open-source JVM language. Guidewire's developer page describes Gosu as an open-source language used in property-and-casualty insurance enterprises, while the gosu-lang project pages present the language as a general JVM language rather than only a product extension language.

The GitHub project and gosu-lang.github.io documentation focus on build, language, and learning surfaces: Maven builds, Gosu Lab, the IntelliJ plugin, Gradle/Maven starter projects, grammar documentation, and examples. Release feed entries show Maven-release-plugin generated tags for the 1.18 line.

### 采用历史

Gosu has an unusual adoption profile for a package-manager language runtime: it has enterprise use through Guidewire, but the open-source distribution also appears in developer package managers such as Homebrew, Nix, Alpine, Debian, and Ubuntu in the batch input. The official docs also point to Maven and Gradle usage where dependencies can be resolved without a local Gosu installation.

### 使用方式

Users can experiment through Gosu Lab, install an IntelliJ plugin, run command-line examples, or use Maven and Gradle projects that pull Gosu JARs. The language is positioned for Java developers who want productivity features while retaining JVM type safety and interoperability.

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

Gosu is significant to package nerds because it sits between enterprise platform language and standalone JVM language runtime. It is not as broadly culturally visible as Scala, Kotlin, Groovy, or Clojure, but package indexes preserve its open-source toolchain and make its command-line distribution discoverable outside Guidewire installations.

### 时间线

- 2014: The gosu-lang/gosu-lang GitHub repository line is identified by GitHub release metadata.
- 2016: The official site news links Gosu 1.14.16 with Java 8 and Java 11 support.
- 2026: The GitHub release feed shows 1.18.x tagged releases generated by the Maven release plugin.

### Related projects

- Guidewire products are the enterprise environment from which Gosu is documented by Guidewire.
- The Gosu IntelliJ plugin is the official recommended IDE path in the project docs.
- Manifold is linked from the Gosu site as a Java compiler plugin carrying some Gosu-like benefits into Java.

### 来源

- <https://formulae.brew.sh/formula/gosu>
- <https://github.com/gosu-lang/gosu-lang>
- <https://github.com/gosu-lang/gosu-lang/releases.atom>
- <https://gosu-lang.github.io/>
- <https://gosu-lang.github.io/docs.html>
- <https://gosu-lang.github.io/quickstart.html>
- <https://www.guidewire.com/developers/developer-tools-and-guides/gosu-programming-language>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - gosu - 1.17-3+b4: normalized package name match | Debian stable package indexes: gosu from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Simple Go-based setuid+setgid+setgroups+exec | https://github.com/tianon/gosu
- Nix - gosu: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/gosu/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gosu - 1.17-1: normalized package name match | Ubuntu 24.04 LTS package indexes: gosu from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Simple Go-based setuid+setgid+setgroups+exec | https://github.com/tianon/gosu
- apk - gosu - 1.19-r5: normalized package name match | Alpine Linux edge package indexes: gosu from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Simple Go-based setuid+setgid+setgroups+exec | https://github.com/tianon/gosu


## Combined YAML source

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