# 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## Package facts

- **Package key:** brew:cocot
- **Package manager:** Homebrew
- **Version:** 1.2-20171118
- **Source summary:** Code converter on tty
- **Homepage:** <https://vmi.jp/software/cygwin/cocot.html>
- **Repository:** <https://github.com/vmi/cocot>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cocot (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.2-20171118
## 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

## 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
