Automic VaultAutomic Vault

brew

使用 Homebrew, apk, MacPorts, Nix, apt, zypper, dnf 安装 udunits

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install udunits

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install udunits

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

Linux

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

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

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

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

Debian apt已验证 · 92%
sudo apt install libudunits2-0

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

openSUSE zypper已验证 · 92%
sudo zypper install udunits-compat

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

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

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

概览

软件包摘要

Unidata unit conversion library

命令和别名

  • udunits2

历史

项目历史与用法

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.

来源

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 13 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
udunits2cli全局可执行文件

新鲜度

版本和新鲜度

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

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

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

安装元数据

软件包元数据

软件包键brew:udunits
版本2.2.28
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/udunits
主页https://docs.unidata.ucar.edu/udunits/current/
仓库https://github.com/Unidata/UDUNITS-2
上游文档https://docs.unidata.ucar.edu/udunits/current
许可证UCAR
源码归档https://downloads.unidata.ucar.edu/udunits/2.2.28/udunits-2.2.28.tar.gz
构建依赖texinfo
macOS 提供的库expat
Bottle可用 (于 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-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 2 提供
  • installed executable or alias match
  • 匹配方式: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

来源线索

由仓库数据生成

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