# 使用 Homebrew, dnf, MacPorts 安装 cocot

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

## 安装

```sh
sudo av install brew:cocot
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cocot
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cocot
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install cocot
```

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

## 软件包事实

- **软件包键:** brew:cocot
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cocot>
- **版本:** 1.2-20171118
- **来源摘要:** Code converter on tty
- **主页:** <https://vmi.jp/software/cygwin/cocot.html>
- **仓库:** <https://github.com/vmi/cocot>
- **上游文档:** <https://vmi.jp/software/cygwin/cocot.html>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/vmi/cocot/archive/refs/tags/cocot-1.2-20171118.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cocot (cli)
- cocot (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

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

cocot is a terminal code-conversion utility whose name expands to COde COnverter on Tty. It sits in a terminal workflow to translate character encodings for programs and remote sessions.

### 项目历史

The upstream ChangeLog records a first release in 2002, early work around EUC-JP, Shift_JIS/CP932, ISO-2022-JP decoding, and later Unicode and East Asian Width updates. The project source moved to GitHub in 2009.

### 采用历史

The package appears in Unix package-manager culture as a small compatibility tool for terminals that still need Japanese legacy encoding conversion. The input records Homebrew, Fedora/dnf, and MacPorts package names.

### 使用方式

Users run cocot around tty programs when the process encoding and terminal encoding differ, especially in CJK terminal environments.

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

cocot is interesting as a compact example of terminal-era encoding glue: small C code, iconv-oriented behavior, and long-tail packaging value for workflows that modern UTF-8 defaults did not fully erase.

### 时间线

- 2002: First release recorded in the upstream ChangeLog.
- 2004: Unicode support and patch merging appear in NEWS and ChangeLog.
- 2008: East Asian Width table update and --help/--version options appear in NEWS.
- 2009: ChangeLog records the source being pushed to github.com/vmi/cocot.
- 2017: Build scripts and warning fixes are recorded in the ChangeLog.

### Related projects

- iconv and terminal emulators occupy the same problem space for character-set conversion and display behavior.

### 来源

- <https://github.com/vmi/cocot>
- <https://raw.githubusercontent.com/vmi/cocot/master/ChangeLog>
- <https://raw.githubusercontent.com/vmi/cocot/master/NEWS>
- source_facts.package-manager


## 安全说明

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:** cocot
- **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

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

- dnf - cocot - 20080315-37.fc45: normalized package name match | Fedora Rawhide package metadata: cocot from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | COde COnverter on Tty | http://vmi.jp/software/cygwin/cocot.html
- MacPorts - cocot: normalized package name match | MacPorts ports tree: textproc/cocot/Portfile from https://api.github.com/repos/macports/macports-ports/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.
- [Web development packages](https://pkg.so/zh-hans/web-dev-tools/) - Matched web development metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [pv](https://pkg.so/zh-hans/brew/pv/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [less](https://pkg.so/zh-hans/brew/less/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [screen](https://pkg.so/zh-hans/brew/screen/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [ranger](https://pkg.so/zh-hans/brew/ranger/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [lesspipe](https://pkg.so/zh-hans/brew/lesspipe/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [picocom](https://pkg.so/zh-hans/brew/picocom/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [ov](https://pkg.so/zh-hans/brew/ov/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [dtach](https://pkg.so/zh-hans/brew/dtach/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [colortail](https://pkg.so/zh-hans/brew/colortail/) - Local package facts share a topical domain. Shared terms: cli, system, terminal.

## Combined YAML source

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