# Install nkf with Homebrew, apt, dnf, MacPorts, Nix, zypper

Network Kanji code conversion Filter (NKF). Version 2.1.5 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:nkf
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install nkf
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nkf
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install libnkf-perl
```

  Evidence: Debian stable package indexes: libnkf-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install nkf
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#nkf
```

  Evidence: nixpkgs package indexes: pkgs/by-name/nk/nkf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install nkf
```

  Evidence: openSUSE Tumbleweed package metadata: nkf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:nkf
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/nkf>
- **Version:** 2.1.5
- **Source summary:** Network Kanji code conversion Filter (NKF)
- **Homepage:** <https://github.com/nurse/nkf>
- **Repository:** <https://github.com/nurse/nkf>
- **Upstream docs:** <https://github.com/nurse/nkf#readme>
- **License:** Zlib
- **Source archive:** <https://deb.debian.org/debian/pool/main/n/nkf/nkf_2.1.5.orig.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- nkf (cli)
- nkf (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.1.5
- Local data: ok
- Upstream repository: https://github.com/nurse/nkf
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

nkf, the Network Kanji Filter, is a long-lived Japanese text encoding conversion utility. It converts among encodings such as ISO-2022-JP, Shift_JIS, EUC-JP, UTF-8, UTF-16, and UTF-32, with automatic input-encoding guessing as one of its defining conveniences.

### Project history

The upstream README credits the original 1987 Fujitsu work by Itaru Ichikawa and the nkf Project's later maintenance from 1996 through 2012. The project's change log shows a major 2.0-era transition in September 2002, including UTF-8/UTF-16 work and migration into SourceForge CVS, which matches nkf's role as Japanese Unix text processing moved from legacy encodings toward Unicode.

### Adoption history

nkf has survived because the Japanese encoding problem never fully disappeared: archives, mail, old web content, Windows-31J/CP932 data, and legacy build/test fixtures still need reliable conversion. Homebrew's API reported 144 installs in 30 days, 560 in 90 days, and 4,692 in 365 days when checked on July 1, 2026, and the package is also present across Debian/Ubuntu, Fedora, openSUSE, Nix, MacPorts, and other package systems.

### How it is used

Typical command-line use is plumbing: guess an unknown Japanese file's encoding, convert Shift_JIS or EUC-JP to UTF-8, normalize line endings, MIME-decode Japanese mail headers, or do in-place conversion with `--overwrite`. Developers also encounter nkf indirectly through language bindings, notably Ruby's NKF extension.

### Timeline

- 1987: original nkf copyright is attributed to Fujitsu Ltd. and Itaru Ichikawa.
- 1996-2012: README credits ongoing nkf Project copyright.
- 2002-09: 2.0-era notes record UTF support work and SourceForge CVS setup.
- 2018-12-15: v2.1.5 is the stable version carried by Homebrew.

### Related projects

- Ruby NKF extension
- python-nkf
- iconv

### Sources

- <https://formulae.brew.sh/api/formula/nkf.json>
- <https://github.com/nurse/nkf>
- <https://raw.githubusercontent.com/nurse/nkf/master/Changes>
- <https://raw.githubusercontent.com/nurse/nkf/master/nkf.1>
- <https://ruby-doc.org/core-3.1.2/NKF.html>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nkf
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libnkf-perl - 1:2.1.5-1+b8: normalized package name match | Debian stable package indexes: libnkf-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Network Kanji code conversion Filter for Perl | https://osdn.net/projects/nkf/
- Debian apt - nkf - 1:2.1.5-1+b8: normalized package name match | Debian stable package indexes: nkf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Network Kanji code conversion Filter | https://osdn.net/projects/nkf/
- Nix - nkf: normalized package name match | nixpkgs package indexes: pkgs/by-name/nk/nkf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libnkf-perl - 1:2.1.5-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: libnkf-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Network Kanji code conversion Filter for Perl | https://osdn.net/projects/nkf/
- Ubuntu apt - nkf - 1:2.1.5-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: nkf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Network Kanji code conversion Filter | https://osdn.net/projects/nkf/
- dnf - nkf - 2.1.4-38.fc44: normalized package name match | Fedora Rawhide package metadata: nkf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A Kanji code conversion filter | http://nkf.osdn.jp/
- dnf - perl-NKF - 2.1.4-38.fc44: normalized package name match | Fedora Rawhide package metadata: perl-NKF from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Perl extension for Network Kanji Filter | http://nkf.osdn.jp/
- zypper - nkf - 2.1.5-1.34: normalized package name match | openSUSE Tumbleweed package metadata: nkf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Network Kanji Code Conversion Filter | http://sourceforge.jp/projects/nkf/
- zypper - perl-NKF - 2.1.5-1.34: normalized package name match | openSUSE Tumbleweed package metadata: perl-NKF from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Perl extension for nkf (Network Kanji Filter) | http://sourceforge.jp/projects/nkf/
- MacPorts - nkf: normalized package name match | MacPorts ports tree: textproc/nkf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [bsdconv](https://www.automicvault.com/pkg/brew/bsdconv/) - Shares av.db curated category or tags: character-encoding, cli, developer-tools, text-processing.
- [align](https://www.automicvault.com/pkg/brew/align/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [cconv](https://www.automicvault.com/pkg/brew/cconv/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [cmigemo](https://www.automicvault.com/pkg/brew/cmigemo/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [decasify](https://www.automicvault.com/pkg/brew/decasify/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [desed](https://www.automicvault.com/pkg/brew/desed/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [enca](https://www.automicvault.com/pkg/brew/enca/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [enscript](https://www.automicvault.com/pkg/brew/enscript/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [recode](https://www.automicvault.com/pkg/brew/recode/) - Local package facts share a topical domain. Shared terms: character, character-encoding, cli, conversion, developer.

## Combined YAML source

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