Automic VaultAutomic Vault

brew

Install udunits with Homebrew, apk, apt, MacPorts, Nix, zypper, dnf

Unidata unit conversion library. Version 2.2.28 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install udunits

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install udunits

MacPorts ports tree · science/udunits/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add udunits

Alpine Linux edge package indexes · udunits · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install libudunits2-0

Debian stable package indexes · libudunits2-0 · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#udunits

nixpkgs package indexes · pkgs/by-name/ud/udunits/package.nix · source: api.github.com

openSUSE zypperverified · 92%
sudo zypper install udunits-compat

openSUSE Tumbleweed package metadata · udunits-compat · source: download.opensuse.org

Fedora dnfverified · 92%
sudo dnf install udunits2

Fedora Rawhide package metadata · udunits2 · source: dl.fedoraproject.org

overview

Package summary

Unidata unit conversion library

Commands and aliases

  • udunits2

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

Sources

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 13 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
udunits2cliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.2.28
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://docs.unidata.ucar.edu/udunits/current/

install metadata

Package metadata

Package keybrew:udunits
Version2.2.28
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/udunits
Homepagehttps://docs.unidata.ucar.edu/udunits/current/
Repositoryhttps://github.com/Unidata/UDUNITS-2
Upstream docshttps://docs.unidata.ucar.edu/udunits/current
LicenseUCAR
Source archivehttps://downloads.unidata.ucar.edu/udunits/2.2.28/udunits-2.2.28.tar.gz
Build dependenciestexinfo
Uses from macOSexpat
Bottleavailable (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libudunits2-0 2.2.28-7

Library for handling of units of physical quantities

https://www.unidata.ucar.edu/software/udunits/

sudo apt install libudunits2-0
  • Section: libs
  • Architecture: amd64
  • Source Package: udunits
  • 3 dependencies
  • normalized package name match
  • Matched by: Udunits
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libudunits2-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libudunits2-data 2.2.28-7

Data for handling of units of physical quantities

https://www.unidata.ucar.edu/software/udunits/

sudo apt install libudunits2-data
  • Section: utils
  • Architecture: all
  • Source Package: udunits
  • normalized package name match
  • Matched by: Udunits
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libudunits2-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libudunits2-dev 2.2.28-7

Development files for the libunits physical units package

https://www.unidata.ucar.edu/software/udunits/

sudo apt install libudunits2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: udunits
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Udunits
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libudunits2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

udunits-bin 2.2.28-7

Utility for handling units of physical quantities

https://www.unidata.ucar.edu/software/udunits/

sudo apt install udunits-bin
  • Section: utils
  • Architecture: amd64
  • Source Package: udunits
  • normalized package name match
  • Matched by: Udunits
Debian stable package indexes · deb.debian.org · Debian stable package indexes: udunits-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

udunits

nix profile install nixpkgs#udunits
  • normalized package name match
  • Matched by: Udunits
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ud/udunits/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libudunits2-0 2.2.28-7build1

Library for handling of units of physical quantities

https://www.unidata.ucar.edu/software/udunits/

sudo apt install libudunits2-0
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: udunits
  • 3 dependencies
  • normalized package name match
  • Matched by: Udunits
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libudunits2-0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libudunits2-data 2.2.28-7build1

Data for handling of units of physical quantities

https://www.unidata.ucar.edu/software/udunits/

sudo apt install libudunits2-data
  • Section: universe/utils
  • Architecture: all
  • Source Package: udunits
  • normalized package name match
  • Matched by: Udunits
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libudunits2-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libudunits2-dev 2.2.28-7build1

Development files for the libunits physical units package

https://www.unidata.ucar.edu/software/udunits/

sudo apt install libudunits2-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: udunits
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Udunits
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libudunits2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

udunits-bin 2.2.28-7build1

Utility for handling units of physical quantities

https://www.unidata.ucar.edu/software/udunits/

sudo apt install udunits-bin
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: udunits
  • normalized package name match
  • Matched by: Udunits
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: udunits-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

udunits 2.2.28-r0

Library for handling of units of physical quantities

https://www.unidata.ucar.edu/software/udunits/

sudo apk add udunits
  • License: UCAR
  • Architecture: x86_64
  • Source Package: udunits
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Udunits
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: udunits from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

udunits-dev 2.2.28-r0

Library for handling of units of physical quantities (development files)

https://www.unidata.ucar.edu/software/udunits/

sudo apk add udunits-dev
  • License: UCAR
  • Architecture: x86_64
  • Source Package: udunits
  • 1 dependencies
  • normalized package name match
  • Matched by: Udunits
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: udunits-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

udunits-doc 2.2.28-r0

Library for handling of units of physical quantities (documentation)

https://www.unidata.ucar.edu/software/udunits/

sudo apk add udunits-doc
  • License: UCAR
  • Architecture: x86_64
  • Source Package: udunits
  • 1 dependencies
  • normalized package name match
  • Matched by: Udunits
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: udunits-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
zypper95%

udunits-compat 2.2.28-2.5

Udunits2 compatibility layer for udunits v1 API

https://www.unidata.ucar.edu/software/udunits/

sudo zypper install udunits-compat
  • License: MIT
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: udunits2
  • 2 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Udunits
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: udunits-compat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

udunits

sudo port install udunits
  • normalized package name match
  • Matched by: Udunits
MacPorts ports tree · api.github.com · MacPorts ports tree: science/udunits/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
MacPorts94%

udunits2

sudo port install udunits2
  • installed executable or alias match
  • Matched by: Udunits2
MacPorts ports tree · api.github.com · MacPorts ports tree: science/udunits2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
dnf92%

udunits2 2.2.28-13.fc44

A library for manipulating units of physical quantities

http://www.unidata.ucar.edu/software/udunits/

sudo dnf install udunits2
  • License: UCAR
  • Category: Unspecified
  • Architecture: i686
  • Source Package: udunits2
  • 4 dependencies
  • 2 provides
  • installed executable or alias match
  • Matched by: Udunits2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: udunits2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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