# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 itstool

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

## 安装

```sh
sudo av install brew:itstool
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install itstool
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install itstool
```

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

### Linux

- apk (92%):

```sh
sudo apk add itstool
```

  证据: Alpine Linux edge package indexes: itstool from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install itstool
```

  证据: Debian stable package indexes: itstool from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install itstool
```

  证据: Fedora Rawhide package metadata: itstool 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#itstool
```

  证据: nixpkgs package indexes: pkgs/by-name/it/itstool/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S itstool
```

  证据: Arch Linux sync databases: itstool from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install itstool
```

  证据: openSUSE Tumbleweed package metadata: itstool from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:itstool
- **软件包管理器:** Homebrew
- **版本:** 2.0.7
- **来源摘要:** Make XML documents translatable through PO files
- **主页:** <https://itstool.org/>
- **仓库:** <https://github.com/itstool/itstool>
- **最后更新:** 2026-06-25T13:37:46+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- itstool (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.0.7
## 项目历史与用法

ITS Tool is a command-line localization utility for turning XML documents into gettext-style PO workflows. Its niche is the intersection of XML documentation, GNU translation tooling, and the W3C Internationalization Tag Set rules that decide what text should be extracted or preserved.

### 项目历史

The project is developed primarily by Shaun McCance and is published as GPL-3.0-or-later free software. Version 1.0.0 was tagged in April 2011, and the project site presents the tool as a way to make XML documents translatable through PO files while applying standard ITS rules plus ITS Tool extensions.

The 2.0.0 release in 2013 was a major standards-alignment point: its NEWS file lists support for several ITS 2.0 data categories, parameters, DocBook 5 built-in rules, and changes that replaced older custom extensions with ITS 2.0 mechanisms. Later 2.0.x releases concentrated on Python 3 compatibility, XML/libxml2 fixes, macOS file writing fixes, and performance improvements.

### 采用历史

ITS Tool became a small but durable packaging-system utility because it solves a recurring documentation localization problem without requiring each XML project to invent its own extractor. Homebrew, Debian, Fedora, Arch, MacPorts, Nix, Alpine, Ubuntu, and openSUSE packaging in the input metadata show its role as distribution infrastructure rather than a general-purpose end-user application.

### 使用方式

The documented workflow is to create POT files from XML and then create translated XML from MO files. Package users usually encounter it in documentation build chains for XML-heavy formats such as DocBook and Mallard, where PO files let translators update individual messages as source documents change.

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

Package maintainers care about ITS Tool because it is glue: it connects W3C ITS metadata, XML documentation formats, and gettext catalogs. That makes it one of the quiet build-time dependencies that keeps localized Unix documentation reproducible across distributions.

### 时间线

- 2011: Version 1.0.0 tagged.
- 2013: Version 2.0.0 added ITS 2.0 support and refreshed built-in XML rules.
- 2017: Version 2.0.3 added Python 3 support while retaining Python 2 support.
- 2021: Version 2.0.7 tagged with performance improvements for ITS rule handling.

### Related projects

- ITS Tool sits beside gettext, PO/MO catalog tooling, W3C ITS, DocBook, Mallard, and libxml2-based XML processing rather than replacing any of them.

### 来源

- <https://api.github.com/repos/itstool/itstool/tags?per_page=100>
- <https://formulae.brew.sh/formula/itstool>
- <https://itstool.org/>
- <https://itstool.org/documentation/>
- <https://raw.githubusercontent.com/itstool/itstool/master/NEWS>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - itstool - 2.0.6-4: normalized package name match | Debian stable package indexes: itstool from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool for translating XML documents with PO files | http://itstool.org/
- Nix - itstool: normalized package name match | nixpkgs package indexes: pkgs/by-name/it/itstool/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - itstool - 2.0.6-2: normalized package name match | Ubuntu 24.04 LTS package indexes: itstool from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool for translating XML documents with PO files | http://itstool.org/
- apk - itstool - 2.0.7-r3: normalized package name match | Alpine Linux edge package indexes: itstool from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | ITS-based XML translation tool | https://itstool.org/
- apk - itstool-doc - 2.0.7-r3: normalized package name match | Alpine Linux edge package indexes: itstool-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | ITS-based XML translation tool (documentation) | https://itstool.org/
- dnf - itstool - 2.0.7-16.fc45: normalized package name match | Fedora Rawhide package metadata: itstool from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | ITS-based XML translation tool | http://itstool.org/
- pacman - itstool - 1:2.0.7-3: normalized package name match | Arch Linux sync databases: itstool from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Translate XML with PO files using W3C Internationalization Tag Set rules | https://itstool.org/
- zypper - itstool - 2.0.7-4.2: normalized package name match | openSUSE Tumbleweed package metadata: itstool from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tool to translate XML documents using PO files | http://itstool.org
- MacPorts - itstool: normalized package name match | MacPorts ports tree: textproc/itstool/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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