# gettext を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper でインストール

gettext のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:gettext
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install gettext
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gettext
```

  証拠: MacPorts ports tree: devel/gettext/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add gettext
```

  証拠: Alpine Linux edge package indexes: gettext from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install gettext
```

  証拠: Debian stable package indexes: gettext from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install gettext
```

  証拠: Fedora Rawhide package metadata: gettext from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#gettext
```

  証拠: nixpkgs package indexes: gettext from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S gettext
```

  証拠: Arch Linux sync databases: gettext from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gettext-runtime
```

  証拠: openSUSE Tumbleweed package metadata: gettext-runtime from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/gettext
```

  証拠: Scoop official bucket manifest trees: bucket/gettext.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id mlocati.GetText -e
```

  証拠: Windows Package Manager source index: mlocati.GetText from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:gettext
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.0
- **ソース概要:** GNU internationalization (i18n) and localization (l10n) library
- **ホームページ:** <https://www.gnu.org/software/gettext/>
- **最終更新:** 2026-07-17T11:18:44-04:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- 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 (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.0
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://git.savannah.gnu.org/cgit/gettext.git>
- <https://www.gnu.org/software/gettext/manual/gettext.html>
- <https://www.gnu.org/software/gettext/manual/html_node/Files.html>
- <https://www.gnu.org/software/gettext/manual/html_node/History.html>
- <https://www.gnu.org/software/gettext/manual/html_node/Introduction.html>
- <https://www.gnu.org/software/gettext/manual/html_node/Overview.html>


## セキュリティノート

library-like package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- library-like package without higher-risk signals

## 他のパッケージマネージャ記録

- Debian apt - autopoint - 0.23.1-2: normalized package name match | Debian stable package indexes: autopoint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool for setting up gettext infrastructure in a source package | https://www.gnu.org/software/gettext/
- Debian apt - gettext - 0.23.1-2: normalized package name match | Debian stable package indexes: gettext from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU Internationalization utilities | https://www.gnu.org/software/gettext/
- Debian apt - gettext-base - 0.23.1-2: normalized package name match | Debian stable package indexes: gettext-base from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU Internationalization utilities for the base system | https://www.gnu.org/software/gettext/
- Debian apt - gettext-doc - 0.23.1-2: normalized package name match | Debian stable package indexes: gettext-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation for GNU gettext | https://www.gnu.org/software/gettext/
- Debian apt - gettext-el - 0.23.1-2: normalized package name match | Debian stable package indexes: gettext-el from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Emacs mode for editing gettext .po files | https://www.gnu.org/software/gettext/
- Debian apt - libasprintf-dev - 0.23.1-2: normalized package name match | Debian stable package indexes: libasprintf-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | use fprintf and friends in C++ - static libraries and headers | https://www.gnu.org/software/gettext/
- Debian apt - libasprintf0v5 - 0.23.1-2: normalized package name match | Debian stable package indexes: libasprintf0v5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | use fprintf and friends in C++ - shared library | https://www.gnu.org/software/gettext/
- Debian apt - libgettextpo-dev - 0.23.1-2: normalized package name match | Debian stable package indexes: libgettextpo-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | process PO files - static libraries and headers | https://www.gnu.org/software/gettext/
- Debian apt - libgettextpo0 - 0.23.1-2: normalized package name match | Debian stable package indexes: libgettextpo0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | process PO files - shared library | https://www.gnu.org/software/gettext/
- Nix - gettext: normalized package name match | nixpkgs package indexes: gettext from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - autopoint - 0.21-14ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: autopoint from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | tool for setting up gettext infrastructure in a source package | https://www.gnu.org/software/gettext/
- Ubuntu apt - gettext - 0.21-14ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gettext from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNU Internationalization utilities | https://www.gnu.org/software/gettext/
- Ubuntu apt - gettext-base - 0.21-14ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gettext-base from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNU Internationalization utilities for the base system | https://www.gnu.org/software/gettext/
- Ubuntu apt - gettext-doc - 0.21-14ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gettext-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Documentation for GNU gettext | https://www.gnu.org/software/gettext/
- Ubuntu apt - gettext-el - 0.21-14ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gettext-el from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Emacs mode for editing gettext .po files | https://www.gnu.org/software/gettext/
- Ubuntu apt - libasprintf-dev - 0.21-14ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libasprintf-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | use fprintf and friends in C++ - static libraries and headers | https://www.gnu.org/software/gettext/


## Combined YAML source

View the package source record on GitHub. [combined/gettext.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gettext.yml)


## ソース

- 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
