# Install cocot with Homebrew, dnf, MacPorts

Code converter on tty. Version 1.2-20171118 via Homebrew; verified from local package data. Also installable with dnf: sudo dnf install cocot.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cocot
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cocot
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:cocot
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cocot>
- **Version:** 1.2-20171118
- **Source summary:** Code converter on tty
- **Homepage:** <https://vmi.jp/software/cygwin/cocot.html>
- **Repository:** <https://github.com/vmi/cocot>
- **Upstream docs:** <https://vmi.jp/software/cygwin/cocot.html>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/vmi/cocot/archive/refs/tags/cocot-1.2-20171118.tar.gz>
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- cocot (cli)
- cocot (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 1.2-20171118
- Local data: ok
- Upstream repository: https://github.com/vmi/cocot
- Upstream latest detected: cocot-1.2-20171118 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://pkg.so/web-dev-tools/) - Matched web development metadata.
- [Homebrew utility packages](https://pkg.so/brew-utility-packages/) - Matched Homebrew package provider.
- [pv](https://pkg.so/brew/pv/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [less](https://pkg.so/brew/less/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [screen](https://pkg.so/brew/screen/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [ranger](https://pkg.so/brew/ranger/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [lesspipe](https://pkg.so/brew/lesspipe/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [picocom](https://pkg.so/brew/picocom/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [ov](https://pkg.so/brew/ov/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [dtach](https://pkg.so/brew/dtach/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [colortail](https://pkg.so/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)


## Sources

- 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
