# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop 安装 cowsay

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

## 安装

```sh
sudo av install brew:cowsay
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cowsay
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cowsay
```

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

### Linux

- apk (92%):

```sh
sudo apk add cowsay
```

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

- Debian apt (92%):

```sh
sudo apt install cowsay
```

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

- dnf (92%):

```sh
sudo dnf install cowsay
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#cowsay
```

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

- pacman (92%):

```sh
sudo pacman -S cowsay
```

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

- zypper (92%):

```sh
sudo zypper install cowsay
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/cowsay
```

  证据: Scoop official bucket manifest trees: bucket/cowsay.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:cowsay
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cowsay>
- **版本:** 3.8.4
- **来源摘要:** Apjanke's fork of the classic cowsay project
- **主页:** <https://cowsay.diamonds>
- **仓库:** <https://github.com/cowsay-org/cowsay>
- **上游文档:** <https://cowsay.diamonds>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://github.com/cowsay-org/cowsay/archive/refs/tags/v3.8.4.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cowsay (cli)
- cowthink (cli)
- cowsay (别名)
- cowthink (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.8.4
- 本地数据: OK
- 上游仓库: https://github.com/cowsay-org/cowsay
- 检测到的最新版本: v3.8.4 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Cowsay is a Perl terminal novelty program that prints a message in a speech balloon next to an ASCII cow. Its official maintained fork describes it as a small, deliberately silly Unix-style program in the spirit of figlet.

### 项目历史

The current cowsay-org project preserves Tony Monroe's original Cowsay. The project README says Monroe first released Cowsay in 1999, after using it privately for some time. Early versions evolved from one cow and a fixed message template into arbitrary messages, multiple cowfiles, figlet support, and a Perl 5 rewrite.

In 2016, Monroe published a final 3.04 version on GitHub and indicated that he was no longer interested in maintaining it. Andrew Janke later created the cowsay-org fork to provide maintenance, hosting, deployment support, random cow selection, and pluggable third-party cow collections.

### 采用历史

Cowsay became a familiar package-manager fixture because it is tiny, scriptable, harmless, and visually distinctive. The Homebrew formula data in this batch lists it across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, Nix, Scoop, and openSUSE-style packaging, reflecting its broad life as a demonstration, shell-customization, and terminal-joke package.

### 使用方式

Typical use is as a command-line filter or generator: users run cowsay or cowthink with a message, often in login banners, demos, shell pipelines, CI jokes, or examples that need recognizable terminal output without real domain complexity.

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

For package maintainers, Cowsay is a classic low-risk novelty package: it exercises Perl script installation, data-file handling for cowfiles, manpage-style documentation, and cross-platform packaging while remaining easy to test by invoking a single executable.

### 时间线

- 1999: Tony Monroe first released Cowsay publicly.
- 2016: Monroe published a final 3.04 version on GitHub for others to use.
- 2016 onward: Andrew Janke's cowsay-org fork provided ongoing maintenance and modern hosting.

### Related projects

- The README explicitly compares Cowsay's spirit to figlet, and points to third-party cowfile collections plus cowsay-org's cows-offensive collection for historical cowfiles kept outside the main distribution.

### 来源

- <https://github.com/cowsay-org/cowsay#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:** cowsay
- **Aliases:** cowthink
- **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 - cowsay - 3.03+dfsg2-8: normalized package name match | Debian stable package indexes: cowsay from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | configurable talking cow | https://web.archive.org/web/20120527202447/http://www.nog.net/~tony/warez/cowsay.shtml
- Debian apt - cowsay-off - 3.03+dfsg2-8: normalized package name match | Debian stable package indexes: cowsay-off from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | configurable talking cow (offensive cows) | https://web.archive.org/web/20120527202447/http://www.nog.net/~tony/warez/cowsay.shtml
- Nix - cowsay: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/cowsay/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cowsay - 3.03+dfsg2-8: normalized package name match | Ubuntu 24.04 LTS package indexes: cowsay from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | configurable talking cow | https://web.archive.org/web/20120527202447/http://www.nog.net/~tony/warez/cowsay.shtml
- Ubuntu apt - cowsay-off - 3.03+dfsg2-8: normalized package name match | Ubuntu 24.04 LTS package indexes: cowsay-off from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | configurable talking cow (offensive cows) | https://web.archive.org/web/20120527202447/http://www.nog.net/~tony/warez/cowsay.shtml
- apk - cowsay - 3.04-r2: normalized package name match | Alpine Linux edge package indexes: cowsay from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Configurable talking cow (and a few other creatures) | https://github.com/tnalpgge/rank-amateur-cowsay
- apk - cowsay-doc - 3.04-r2: normalized package name match | Alpine Linux edge package indexes: cowsay-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Configurable talking cow (and a few other creatures) (documentation) | https://github.com/tnalpgge/rank-amateur-cowsay
- dnf - cowsay - 3.8.4-6.fc45: normalized package name match | Fedora Rawhide package metadata: cowsay from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Configurable speaking/thinking cow | https://github.com/cowsay-org/cowsay
- pacman - cowsay - 3.8.4-1: normalized package name match | Arch Linux sync databases: cowsay from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Configurable talking cow (and a bit more) | https://cowsay.diamonds
- zypper - cowsay - 3.8.4-1.5: normalized package name match | openSUSE Tumbleweed package metadata: cowsay from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Configurable talking cow (and some other creatures) | https://cowsay.diamonds/
- MacPorts - cowsay: normalized package name match | MacPorts ports tree: textproc/cowsay/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/cowsay: normalized package name match | Scoop official bucket manifest trees: bucket/cowsay.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [ponysay](https://pkg.so/zh-hans/brew/ponysay/) - Shares pkgdb curated category or tags: ascii-art, cli, terminal, terminal-toy, toys.
- [asciiquarium](https://pkg.so/zh-hans/brew/asciiquarium/) - Shares pkgdb curated category or tags: ascii-art, cli, perl, terminal, toys.
- [fakesteak](https://pkg.so/zh-hans/brew/fakesteak/) - Shares pkgdb curated category or tags: ascii-art, cli, terminal, toys.
- [tractorgen](https://pkg.so/zh-hans/brew/tractorgen/) - Shares pkgdb curated category or tags: ascii-art, cli, terminal, toys.
- [cmatrix](https://pkg.so/zh-hans/brew/cmatrix/) - Shares pkgdb curated category or tags: cli, terminal, toys.
- [sl](https://pkg.so/zh-hans/brew/sl/) - Shares pkgdb curated category or tags: cli, terminal, toys.
- [fortune](https://pkg.so/zh-hans/brew/fortune/) - Shares pkgdb curated category or tags: cli, terminal, toys.
- [cbonsai](https://pkg.so/zh-hans/brew/cbonsai/) - Shares pkgdb curated category or tags: cli, terminal, toys.
- [cowsay](https://pkg.so/zh-hans/npm/cowsay/) - Same normalized package name appears in another local ecosystem. Shared terms: art, ascii, cli, cowsay, cowthink.
- [cowsay](https://pkg.so/zh-hans/npm/cowsay/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/cowsay.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cowsay.yml)


## 来源

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