Automic VaultAutomic Vault

brew

使用 Homebrew, apt, dnf, MacPorts, Nix, zypper 安装 nkf

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nkf

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install nkf

MacPorts ports tree · textproc/nkf/Portfile · 来源: api.github.com

Linux

Debian apt已验证 · 92%
sudo apt install nkf

Debian stable package indexes · nkf · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install nkf

Fedora Rawhide package metadata · nkf · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#nkf

nixpkgs package indexes · pkgs/by-name/nk/nkf/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install nkf

openSUSE Tumbleweed package metadata · nkf · 来源: download.opensuse.org

概览

软件包摘要

Network Kanji code conversion Filter (NKF)

命令和别名

  • nkf

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

时间线

  • 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

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:network

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nkfcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.1.5
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/nurse/nkf

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息No cached GitHub release or tag data was available.https://github.com/nurse/nkfnone 置信度

安装元数据

软件包元数据

软件包键brew:nkf
版本2.1.5
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/nkf
主页https://github.com/nurse/nkf
仓库https://github.com/nurse/nkf
上游文档https://github.com/nurse/nkf#readme
许可证Zlib
源码归档https://deb.debian.org/debian/pool/main/n/nkf/nkf_2.1.5.orig.tar.gz
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenkf
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libnkf-perl 1:2.1.5-1+b8

Network Kanji code conversion Filter for Perl

https://osdn.net/projects/nkf/

sudo apt install libnkf-perl
  • Section: perl
  • Architecture: amd64
  • Source Package: nkf
  • 3 依赖
  • normalized package name match
  • 匹配方式:Nkf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnkf-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nkf 1:2.1.5-1+b8

Network Kanji code conversion Filter

https://osdn.net/projects/nkf/

sudo apt install nkf
  • Section: text
  • Architecture: amd64
  • Source Package: nkf
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nkf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nkf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

nkf

nix profile install nixpkgs#nkf
  • normalized package name match
  • 匹配方式:Nkf
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/nk/nkf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libnkf-perl 1:2.1.5-1build7

Network Kanji code conversion Filter for Perl

https://osdn.net/projects/nkf/

sudo apt install libnkf-perl
  • Section: universe/perl
  • Architecture: amd64
  • Source Package: nkf
  • 3 依赖
  • normalized package name match
  • 匹配方式:Nkf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnkf-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

nkf 1:2.1.5-1build7

Network Kanji code conversion Filter

https://osdn.net/projects/nkf/

sudo apt install nkf
  • Section: universe/text
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nkf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nkf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

nkf 2.1.4-38.fc44

A Kanji code conversion filter

http://nkf.osdn.jp/

sudo dnf install nkf
  • License: Zlib
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: nkf
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nkf
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: nkf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

perl-NKF 2.1.4-38.fc44

Perl extension for Network Kanji Filter

http://nkf.osdn.jp/

sudo dnf install perl-NKF
  • License: Zlib
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: nkf
  • 5 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nkf
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
zypper95%

nkf 2.1.5-1.34

Network Kanji Code Conversion Filter

http://sourceforge.jp/projects/nkf/

sudo zypper install nkf
  • License: BSD-3-Clause
  • Category: System/I18n/Japanese
  • Architecture: x86_64
  • Source Package: nkf
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nkf
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: nkf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

perl-NKF 2.1.5-1.34

Perl extension for nkf (Network Kanji Filter)

http://sourceforge.jp/projects/nkf/

sudo zypper install perl-NKF
  • License: BSD-3-Clause
  • Category: Development/Libraries/Perl
  • Architecture: x86_64
  • Source Package: nkf
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nkf
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: perl-NKF from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

nkf

sudo port install nkf
  • normalized package name match
  • 匹配方式:Nkf
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/nkf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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