Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper 安装 gettext

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gettext

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install gettext

MacPorts ports tree · devel/gettext/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add gettext

Alpine Linux edge package indexes · gettext · 来源: dl-cdn.alpinelinux.org

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

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

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

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

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

nixpkgs package indexes · gettext · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S gettext

Arch Linux sync databases · gettext · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install gettext-runtime

openSUSE Tumbleweed package metadata · gettext-runtime · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/gettext

Scoop official bucket manifest trees · bucket/gettext.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id mlocati.GetText -e

Windows Package Manager source index · mlocati.GetText · 来源: cdn.winget.microsoft.com

概览

软件包摘要

GNU internationalization (i18n) and localization (l10n) library

命令和别名

  • autopoint
  • envsubst
  • gettext
  • gettext.sh
  • gettextize
  • msgattrib
  • msgcat
  • msgcmp
  • msgcomm
  • msgconv
  • msgen
  • msgexec
  • msgfilter
  • msgfmt
  • msggrep
  • msginit
  • msgmerge
  • msgpre
  • msgunfmt
  • msguniq
  • ngettext
  • po-fetch
  • printf_gettext
  • printf_ngettext
  • recode-sr-latin
  • spit
  • xgettext

历史

项目历史与用法

GNU gettext is the GNU internationalization and localization toolkit for message catalogs. It supplies runtime APIs, command-line tools, PO and MO file workflows, and maintainer and translator conventions used by many Unix-like software projects.

项目历史

GNU's own history traces the work to 1994 internationalization experiments around GNU fileutils and the `glocale` effort. Ulrich Drepper rewrote the approach in April 1995, and the package went through names such as `msgutils` and `nlsutils` before `gettext` was accepted as the GNU package name.

The first official GNU gettext release, numbered 0.7, appeared in July 1995 and included PO mode. In 1997, GNU libc 2.0 included the `gettext`, `textdomain`, and `bindtextdomain` functions; in 2000, plural-form handling via `ngettext` entered GNU libc, and Bruno Haible took over GNU gettext maintenance.

采用历史

gettext became central to GNU and Unix-like localization because it separates programming from translation: source strings are marked in code, `xgettext` extracts templates, translators edit PO files, `msgmerge` refreshes them across source changes, and `msgfmt` compiles machine-readable catalogs. Its workflow gave maintainers, translators, distributors, and users a shared file format and toolchain.

使用方式

Practitioners use gettext by marking translatable strings in program sources, initializing a text domain, extracting POT templates, maintaining language-specific PO files, compiling MO files, and installing catalogs under locale directories. Shell users and build systems also use utilities such as `gettext`, `ngettext`, `xgettext`, `msginit`, `msgmerge`, `msgfmt`, `msgattrib`, `msgcat`, and `envsubst`.

为什么软件包爱好者会关心

For package ecosystems, gettext is infrastructure rather than an optional convenience. Source distributions often carry POT and PO files, binary packages install compiled catalogs, and build recipes depend on tools such as `autopoint`, `gettextize`, `msgfmt`, and `xgettext` to keep translation workflows reproducible.

时间线

  • 1994: GNU fileutils internationalization work led to broader GNU native-language-support experiments.
  • 1995: Ulrich Drepper wrote GNU gettext and the first official release, 0.7, appeared in July.
  • 1997: GNU libc 2.0 included gettext-related functions.
  • 2000: `ngettext` plural-form handling entered GNU libc and Bruno Haible took over GNU gettext maintenance.
  • 2001: GNU libc 2.2.x was released with full internationalization support according to the GNU gettext manual.

Related projects

  • GNU gettext is tied to GNU libc, the GNU Translation Project, PO mode, Autotools workflows, and localization tools that consume or convert PO files.

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
autopointcli全局可执行文件
envsubstcli全局可执行文件
gettextcli全局可执行文件
gettext.shcli全局可执行文件
gettextizecli全局可执行文件
msgattribcli全局可执行文件
msgcatcli全局可执行文件
msgcmpcli全局可执行文件
msgcommcli全局可执行文件
msgconvcli全局可执行文件
msgencli全局可执行文件
msgexeccli全局可执行文件
msgfiltercli全局可执行文件
msgfmtcli全局可执行文件
msggrepcli全局可执行文件
msginitcli全局可执行文件
msgmergecli全局可执行文件
msgprecli全局可执行文件
msgunfmtcli全局可执行文件
msguniqcli全局可执行文件
ngettextcli全局可执行文件
po-fetchcli全局可执行文件
printf_gettextcli全局可执行文件
printf_ngettextcli全局可执行文件
recode-sr-latincli全局可执行文件
spitcli全局可执行文件
xgettextcli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://www.gnu.org/software/gettext/

安装元数据

软件包元数据

软件包键brew:gettext
版本1.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gettext
主页https://www.gnu.org/software/gettext/
仓库https://git.savannah.gnu.org/cgit/gettext.git
上游文档https://www.gnu.org/software/gettext/FAQ.html
许可证GPL-3.0-or-later AND LGPL-2.1-or-later
源码归档https://ftpmirror.gnu.org/gnu/gettext/gettext-1.0.tar.gz
最后更新2026-07-04T09:43:28Z
Pulseupdated
依赖json-c, libunistring
macOS 提供的库curl, libxml2, ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

autopoint 0.23.1-2

tool for setting up gettext infrastructure in a source package

https://www.gnu.org/software/gettext/

sudo apt install autopoint
  • Section: devel
  • Architecture: all
  • Source Package: gettext
  • 1 依赖
  • normalized package name match
  • 匹配方式:Gettext
Debian stable package indexes · deb.debian.org · Debian stable package indexes: autopoint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

gettext 0.23.1-2

GNU Internationalization utilities

https://www.gnu.org/software/gettext/

sudo apt install gettext
  • Section: devel
  • Architecture: amd64
  • 8 依赖
  • 8 可选依赖
  • normalized package name match
  • 匹配方式:Gettext
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gettext from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

gettext-base 0.23.1-2

GNU Internationalization utilities for the base system

https://www.gnu.org/software/gettext/

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

gettext-doc 0.23.1-2

Documentation for GNU gettext

https://www.gnu.org/software/gettext/

sudo apt install gettext-doc
  • Section: doc
  • Architecture: all
  • Source Package: gettext
  • normalized package name match
  • 匹配方式:Gettext
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gettext-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

gettext-el 0.23.1-2

Emacs mode for editing gettext .po files

https://www.gnu.org/software/gettext/

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

libasprintf-dev 0.23.1-2

use fprintf and friends in C++ - static libraries and headers

https://www.gnu.org/software/gettext/

sudo apt install libasprintf-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gettext
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gettext
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libasprintf-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libasprintf0v5 0.23.1-2

use fprintf and friends in C++ - shared library

https://www.gnu.org/software/gettext/

sudo apt install libasprintf0v5
  • Section: libs
  • Architecture: amd64
  • Source Package: gettext
  • 2 依赖
  • normalized package name match
  • 匹配方式:Gettext
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libasprintf0v5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgettextpo-dev 0.23.1-2

process PO files - static libraries and headers

https://www.gnu.org/software/gettext/

sudo apt install libgettextpo-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gettext
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gettext
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgettextpo-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgettextpo0 0.23.1-2

process PO files - shared library

https://www.gnu.org/software/gettext/

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

gettext

nix profile install nixpkgs#gettext
  • normalized package name match
  • 匹配方式:Gettext
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: gettext from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

autopoint 0.21-14ubuntu2

tool for setting up gettext infrastructure in a source package

https://www.gnu.org/software/gettext/

sudo apt install autopoint
  • Section: devel
  • Architecture: all
  • Source Package: gettext
  • 1 依赖
  • normalized package name match
  • 匹配方式:Gettext
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: autopoint from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

gettext 0.21-14ubuntu2

GNU Internationalization utilities

https://www.gnu.org/software/gettext/

sudo apt install gettext
  • Section: devel
  • Architecture: amd64
  • 5 依赖
  • 7 可选依赖
  • normalized package name match
  • 匹配方式:Gettext
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gettext from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

gettext-base 0.21-14ubuntu2

GNU Internationalization utilities for the base system

https://www.gnu.org/software/gettext/

sudo apt install gettext-base
  • Section: utils
  • Architecture: amd64
  • Source Package: gettext
  • 1 依赖
  • normalized package name match
  • 匹配方式:Gettext
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gettext-base from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

gettext-doc 0.21-14ubuntu2

Documentation for GNU gettext

https://www.gnu.org/software/gettext/

sudo apt install gettext-doc
  • Section: doc
  • Architecture: all
  • Source Package: gettext
  • normalized package name match
  • 匹配方式:Gettext
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gettext-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

gettext-el 0.21-14ubuntu2

Emacs mode for editing gettext .po files

https://www.gnu.org/software/gettext/

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

libasprintf-dev 0.21-14ubuntu2

use fprintf and friends in C++ - static libraries and headers

https://www.gnu.org/software/gettext/

sudo apt install libasprintf-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gettext
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gettext
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libasprintf-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz

来源线索

由仓库数据生成

此页面由 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