macOS
brew install libidn2local Homebrew formula metadata
sudo port install libidn2MacPorts ports tree · mail/libidn2/Portfile · 来源: api.github.com
安装
brew install libidn2local Homebrew formula metadata
sudo port install libidn2MacPorts ports tree · mail/libidn2/Portfile · 来源: api.github.com
sudo apk add libidn2Alpine Linux edge package indexes · libidn2 · 来源: dl-cdn.alpinelinux.org
sudo dnf install libidn2Fedora Rawhide package metadata · libidn2 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#libidn2nixpkgs package indexes · libidn2 · 来源: raw.githubusercontent.com
sudo pacman -S libidn2Arch Linux sync databases · libidn2 · 来源: geo.mirror.pkgbuild.com
sudo zypper install libidn2-0openSUSE Tumbleweed package metadata · libidn2-0 · 来源: download.opensuse.org
概览
International domain name library (IDNA2008, Punycode and TR46)
历史
GNU Libidn2 is the GNU successor to Libidn for IDNA2008 and Unicode TR46 internationalized-domain-name processing.
The IETF IDNA2008 RFC series replaced the earlier IDNA2003 model, describing a revised protocol and definitions for internationalized domain names. Libidn2 was created to implement that newer standards family while retaining package-level continuity for GNU users.
The Libidn2 NEWS file records an initial 0.0 alpha release on 2011-03-09 for public API review, with IDNA2008 lookup mostly implemented. Release 0.2 on 2011-03-30 added the idn2 command-line tool and made lookup/register functions operational.
Release 0.12 on 2016-12-26 added TR46/UTS #46 support to the API and idn2 utility. Release 2.0.0 on 2017-03-29 changed the version numbering scheme and added to-ASCII and to-Unicode conversion functions corresponding to Libidn functions. Release 2.0.5 on 2018-05-18 switched the default library behavior to IDNA2008 as amended by non-transitional TR46.
The GNU Libidn page explicitly calls Libidn2 the successor of GNU Libidn and notes that it provides IDNA2008, TR46, and a compatibility layer for GNU Libidn. That made it the practical migration path for distributions and network applications moving away from IDNA2003 behavior.
Libidn2 is package-visible because applications often need a shared, audited implementation of Unicode domain-name conversion rather than hand-rolling security-sensitive Punycode and normalization behavior.
Users call idn2 for command-line conversion and debugging, while applications link the library for IDNA lookup and registration conversions. The manual emphasizes correct locale and UTF-8 handling because feeding bytes in the wrong character set can produce errors or wrong output.
Libidn2 is where DNS, Unicode versioning, security-sensitive string handling, and compatibility policy meet. Packagers care about it because changing from libidn to libidn2 can alter IDNA behavior, but staying on IDNA2003 can be wrong for software that expects IDNA2008/TR46.
It is also a good example of a successor package that is not just a new ABI: it represents a standards transition and a different view of what domain names should accept.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
idn2 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.gnu.org/software/libidn/#libidn2
安装元数据
| 软件包键 | brew:libidn2 |
|---|---|
| 版本 | 2.3.8 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libidn2 |
| 主页 | https://www.gnu.org/software/libidn/#libidn2 |
| 仓库 | https://git.savannah.gnu.org/git/libidn/libidn2.git |
| 上游文档 | https://www.gnu.org/software/libidn/libidn2/manual/libidn2.html |
| 许可证 | (GPL-2.0-or-later OR LGPL-3.0-or-later) AND (Unicode-TOU AND Unicode-DFS-2016) AND GPL-3.0-or-later AND LGPL-2.1-or-later AND FSFAP-no-warranty-disclaimer |
| 源码归档 | https://ftpmirror.gnu.org/gnu/libidn/libidn2-2.3.8.tar.gz |
| 最后更新 | 2026-06-22T14:05:18-07:00 |
| Pulse | updated |
| 依赖 | gettext, libunistring |
| 构建依赖 | pkgconf |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libidn2 |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
idn2 2.3.8-2
Internationalized domain names (IDNA2008/TR46) command line tool
https://www.gnu.org/software/libidn/#libidn2
sudo apt install idn2libidn2-0 2.3.8-2
Internationalized domain names (IDNA2008/TR46) library
https://www.gnu.org/software/libidn/#libidn2
sudo apt install libidn2-0libidn2-dev 2.3.8-2
Internationalized domain names (IDNA2008/TR46) development files
https://www.gnu.org/software/libidn/#libidn2
sudo apt install libidn2-devlibidn2-doc 2.3.8-2
Internationalized domain names (IDNA2008/TR46) documentation
https://www.gnu.org/software/libidn/#libidn2
sudo apt install libidn2-doclibidn2
nix profile install nixpkgs#libidn2idn2 2.3.7-2build1
Internationalized domain names (IDNA2008/TR46) command line tool
https://www.gnu.org/software/libidn/#libidn2
sudo apt install idn2libidn2-0 2.3.7-2build1
Internationalized domain names (IDNA2008/TR46) library
https://www.gnu.org/software/libidn/#libidn2
sudo apt install libidn2-0libidn2-dev 2.3.7-2build1
Internationalized domain names (IDNA2008/TR46) development files
https://www.gnu.org/software/libidn/#libidn2
sudo apt install libidn2-devlibidn2-doc 2.3.7-2build1
Internationalized domain names (IDNA2008/TR46) documentation
https://www.gnu.org/software/libidn/#libidn2
sudo apt install libidn2-docidn2-utils 2.3.8-r0
Encode/Decode library for internationalized domain names (CLI utilities)
https://www.gnu.org/software/libidn#libidn2
sudo apk add idn2-utilslibidn2 2.3.8-r0
Encode/Decode library for internationalized domain names
https://www.gnu.org/software/libidn#libidn2
sudo apk add libidn2libidn2-dev 2.3.8-r0
Encode/Decode library for internationalized domain names (development files)
https://www.gnu.org/software/libidn#libidn2
sudo apk add libidn2-devlibidn2-doc 2.3.8-r0
Encode/Decode library for internationalized domain names (documentation)
https://www.gnu.org/software/libidn#libidn2
sudo apk add libidn2-doclibidn2-static 2.3.8-r0
Encode/Decode library for internationalized domain names (static library)
https://www.gnu.org/software/libidn#libidn2
sudo apk add libidn2-staticidn2 2.3.8-3.fc44
IDNA2008 internationalized domain names conversion tool
https://www.gnu.org/software/libidn/#libidn2
sudo dnf install idn2libidn2 2.3.8-3.fc44
Library to support IDNA2008 internationalized domain names
https://www.gnu.org/software/libidn/#libidn2
sudo dnf install libidn2来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.