# udunits を Homebrew, apk, MacPorts, Nix, apt, zypper, dnf でインストール

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

## インストール

```sh
sudo av install brew:udunits
```

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

### macOS

- Homebrew (100%):

```sh
brew install udunits
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install udunits
```

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

### Linux

- apk (92%):

```sh
sudo apk add udunits
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#udunits
```

  証拠: nixpkgs package indexes: pkgs/by-name/ud/udunits/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install libudunits2-0
```

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

- zypper (92%):

```sh
sudo zypper install udunits-compat
```

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

- dnf (92%):

```sh
sudo dnf install udunits2
```

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

## パッケージ情報

- **パッケージキー:** brew:udunits
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.2.28
- **ソース概要:** Unidata unit conversion library
- **ホームページ:** <https://docs.unidata.ucar.edu/udunits/current/>
- **リポジトリ:** <https://github.com/Unidata/UDUNITS-2>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- udunits2 (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

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

UDUNITS is NSF Unidata's package for representing, manipulating, and converting units of physical quantities. It matters in package-manager culture because it is both a C library and a small command-line utility, so higher-level scientific packages can depend on it without each carrying its own unit database.

### プロジェクトの歴史

The current UDUNITS-2 line replaced the original UDUNITS-1 implementation while preserving broad compatibility. The official manual describes UDUNITS-2 as a C library, the `udunits2` unit-definition and conversion utility, and an extensive XML database of units.

UDUNITS-2 changed the older package in several concrete ways: non-ASCII unit strings, logarithmic units, persistent value converters, a revised API, and an XML unit database with import support. The manual also notes that a version 1 C API is included for backward compatibility, making it a transition package as well as a new implementation.

The changelog shows the project continuing through many 2.1 and 2.2 releases, with work on the command-line utility, Windows and CMake builds, unit database corrections, timestamp parsing, and portability fixes. Version 2.2.28 was published in December 2020 with documentation and release-engineering changes.

### 採用の歴史

UDUNITS is part of the broader Unidata scientific software ecosystem, alongside tools such as netCDF. Its adoption pattern is typical of scientific infrastructure packages: it is rarely the end-user application, but it becomes a dependency below weather, climate, geoscience, and data-processing software that need consistent physical-unit parsing and conversion.

The package-manager metadata in this batch shows the same infrastructure role across Unix-like ecosystems: Homebrew ships `udunits`, Debian and Ubuntu expose `libudunits2-0`, Fedora uses `udunits2`, and MacPorts and Nix also package it. That spread reflects a library that downstream scientific stacks expect to find from the system package manager.

### 使われ方

Library users call UDUNITS to parse unit strings, obtain binary unit representations, manipulate units arithmetically, and build converters between compatible units. Command-line users use `udunits2` to inspect unit definitions and convert numeric values.

The XML unit database is a central usage point. The official documentation lists separate XML files for SI prefixes, SI base and derived units, SI-accepted units, and common non-SI units, and explains that the database is user-extensible.

### パッケージ好きにとっての重要性

UDUNITS is a classic scientific packaging dependency: small on the command line, important in ABI/API terms, and easy to overlook until a build of a larger scientific tool fails because unit parsing is missing. Its value to package nerds is that it externalizes a shared, curated unit database and conversion library instead of duplicating unit logic in every project.

The package is also interesting because it straddles eras. It keeps compatibility with older UDUNITS-1 users while presenting a UDUNITS-2 API and XML database, so distribution maintainers care about headers, shared-library paths, data-file locations, and versioned downstream expectations.

### タイムライン

- 2009: UDUNITS-2 2.1.0 added a UDUNITS-1 compatibility API inside the new library.
- 2011: The official GitHub repository was created.
- 2014: UDUNITS-2 2.2.x development focused on documentation, CMake, Windows support, and unit database fixes.
- 2020-12-28: UDUNITS 2.2.28 was published.

### Related projects

- UDUNITS is published by NSF Unidata/UCAR and sits near other Unidata tools such as netCDF in scientific data workflows.
- The original UDUNITS-1 package is directly related: UDUNITS-2 documents both differences from UDUNITS-1 and a compatibility C API.

### ソース

- The official CHANGE_LOG in the repository records 2.1.x, 2.2.x, and 2.2.28 release details.
- <https://docs.unidata.ucar.edu/udunits/current/ describes UDUNITS-2, its components, differences from UDUNITS-1, XML database, installation, and support.>
- <https://github.com/Unidata/UDUNITS-2 is the official repository and describes the package as an API and utility for arithmetic manipulation of physical units.>
- <https://www.unidata.ucar.edu/software/udunits is the official product page for the package.>
- source_facts.package-manager lists package names across Homebrew, Debian, Fedora, MacPorts, Nix, Ubuntu, and openSUSE.


## セキュリティノート

library-like package without higher-risk signals.

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

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

- Debian apt - libudunits2-0 - 2.2.28-7: normalized package name match | Debian stable package indexes: libudunits2-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Library for handling of units of physical quantities | https://www.unidata.ucar.edu/software/udunits/
- Debian apt - libudunits2-data - 2.2.28-7: normalized package name match | Debian stable package indexes: libudunits2-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Data for handling of units of physical quantities | https://www.unidata.ucar.edu/software/udunits/
- Debian apt - libudunits2-dev - 2.2.28-7: normalized package name match | Debian stable package indexes: libudunits2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for the libunits physical units package | https://www.unidata.ucar.edu/software/udunits/
- Debian apt - udunits-bin - 2.2.28-7: normalized package name match | Debian stable package indexes: udunits-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Utility for handling units of physical quantities | https://www.unidata.ucar.edu/software/udunits/
- Nix - udunits: normalized package name match | nixpkgs package indexes: pkgs/by-name/ud/udunits/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libudunits2-0 - 2.2.28-7build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libudunits2-0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Library for handling of units of physical quantities | https://www.unidata.ucar.edu/software/udunits/
- Ubuntu apt - libudunits2-data - 2.2.28-7build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libudunits2-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Data for handling of units of physical quantities | https://www.unidata.ucar.edu/software/udunits/
- Ubuntu apt - libudunits2-dev - 2.2.28-7build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libudunits2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for the libunits physical units package | https://www.unidata.ucar.edu/software/udunits/
- Ubuntu apt - udunits-bin - 2.2.28-7build1: normalized package name match | Ubuntu 24.04 LTS package indexes: udunits-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Utility for handling units of physical quantities | https://www.unidata.ucar.edu/software/udunits/
- apk - udunits - 2.2.28-r0: normalized package name match | Alpine Linux edge package indexes: udunits from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for handling of units of physical quantities | https://www.unidata.ucar.edu/software/udunits/
- apk - udunits-dev - 2.2.28-r0: normalized package name match | Alpine Linux edge package indexes: udunits-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for handling of units of physical quantities (development files) | https://www.unidata.ucar.edu/software/udunits/
- apk - udunits-doc - 2.2.28-r0: normalized package name match | Alpine Linux edge package indexes: udunits-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library for handling of units of physical quantities (documentation) | https://www.unidata.ucar.edu/software/udunits/
- zypper - udunits-compat - 2.2.28-2.7: normalized package name match | openSUSE Tumbleweed package metadata: udunits-compat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Udunits2 compatibility layer for udunits v1 API | https://www.unidata.ucar.edu/software/udunits/
- MacPorts - udunits: normalized package name match | MacPorts ports tree: science/udunits/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - udunits2: installed executable or alias match | MacPorts ports tree: science/udunits2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- dnf - udunits2 - 2.2.28-14.fc45: installed executable or alias match | Fedora Rawhide package metadata: udunits2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A library for manipulating units of physical quantities | http://www.unidata.ucar.edu/software/udunits/


## Combined YAML source

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