# Install cocot with Homebrew, dnf, MacPorts

Code converter on tty. Version 1.2-20171118 via Homebrew; verified from local package data.

## 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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://github.com/vmi/cocot#readme>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/vmi/cocot/archive/refs/tags/cocot-1.2-20171118.tar.gz>
- **Generated:** 2026-07-08T07:18:31+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-07-08
- 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-36.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched web development metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [tio](https://www.automicvault.com/pkg/brew/tio/) - Shares av.db curated category or tags: cli, system, terminal, tty.
- [abduco](https://www.automicvault.com/pkg/brew/abduco/) - Shares av.db curated category or tags: cli, system, terminal.
- [cmatrix](https://www.automicvault.com/pkg/brew/cmatrix/) - Shares av.db curated category or tags: cli, system, terminal.
- [colortail](https://www.automicvault.com/pkg/brew/colortail/) - Shares av.db curated category or tags: cli, system, terminal.
- [dtach](https://www.automicvault.com/pkg/brew/dtach/) - Shares av.db curated category or tags: cli, system, terminal.
- [gtop](https://www.automicvault.com/pkg/brew/gtop/) - Shares av.db curated category or tags: cli, system, terminal.
- [hwatch](https://www.automicvault.com/pkg/brew/hwatch/) - Shares av.db curated category or tags: cli, system, terminal.
- [less](https://www.automicvault.com/pkg/brew/less/) - Shares av.db curated category or tags: cli, system, terminal.

## Combined YAML source

View the package source record on GitHub. [combined/cocot.yml](https://github.com/automic-vault/db/blob/main/combined/cocot.yml)


## Sources

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