Automic VaultAutomic Vault

brew

使用 Homebrew, winget, apk, apt, dnf, Nix, scoop, zypper 安装 gnu-units

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gnu-units

local Homebrew formula metadata

Linux

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

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

Debian apt已验证 · 92%
sudo apt install units

Debian stable package indexes · units · 来源: deb.debian.org

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

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

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

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

openSUSE zypper已验证 · 92%
sudo zypper install units

openSUSE Tumbleweed package metadata · units · 来源: download.opensuse.org

Windows

Windows Package Manager已验证 · 92%
winget install --id GNU.Units -e

Windows Package Manager source index · GNU.Units · 来源: cdn.winget.microsoft.com

Scoop已验证 · 92%
scoop install main/units

Scoop official bucket manifest trees · bucket/units.json · 来源: api.github.com

概览

软件包摘要

GNU unit conversion tool

命令和别名

  • units

历史

项目历史与用法

GNU Units is a command-line unit conversion program and scientific calculator. It converts between measurement systems, checks dimensional consistency, supports nonlinear conversions, and reads its knowledge from data files that users can extend.

项目历史

The GNU FTP archive records Units releases from the 1.x line in 1997 through the 2.x line, while the manual describes edition 2.25 and the program model used by the modern package. Its evolution turned a unit converter into a calculator that understands products, quotients, powers, roots, temperature conversions, unit lists, physical constants, currency data, CPI data, Unicode, readline, and custom definitions.

The project keeps unit definitions outside the executable. The GNU page and manual both stress that users can rely on the bundled data files or provide supplemental definitions, making the package partly a maintained measurement database and partly an interactive calculator.

采用历史

GNU Units is broadly useful in engineering, science, cooking, astronomy, packaging, and everyday shell work because it gives unit-aware answers without opening a large computer algebra system. Its availability across Unix package managers and a Windows binary reflects that utility: the program is small, scriptable, and backed by a large curated unit database.

使用方式

Practitioners use units interactively at the You have and You want prompts, or non-interactively by passing source and destination expressions on the command line. They also use it to reduce a unit to its definition, search the database, verify conformability, calculate with constants, and add local definitions for domain-specific units.

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

Package nerds care about GNU Units because it turns messy measurement lore into a reproducible data file shipped by the operating system. It is one of those quiet command-line tools that prevents dimensional mistakes in scripts, documentation, package formulas, lab notebooks, and build-time calculations.

时间线

  • 1997: GNU FTP archive lists units 1.53.
  • 2012: GNU FTP archive lists units 2.00.
  • 2024: GNU FTP archive lists units 2.23 and 2.24.
  • 2026: GNU FTP archive lists units 2.27.

Related projects

  • Related tools include bc, dc, physical-constants tables, currency data updaters, readline-enabled command interpreters, and unit support in scientific programming environments.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://www.gnu.org/software/units/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://www.gnu.org/software/units/none 置信度

安装元数据

软件包元数据

软件包键brew:gnu-units
版本2.27
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gnu-units
主页https://www.gnu.org/software/units/
上游文档https://www.gnu.org/software/units/manual/units.html
许可证GPL-3.0-or-later
源码归档https://ftpmirror.gnu.org/gnu/units/units-2.27.tar.gz
依赖readline
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc like: PATH="$HOMEBREW_PREFIX/opt/gnu-units/libexec/gnubin:$PATH"

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

winget95%

GNU.Units

winget install --id GNU.Units -e
  • normalized package name match
  • 匹配方式:Gnu Units
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: GNU.Units from https://cdn.winget.microsoft.com/cache/source.msix
Debian apt92%

units 2.24-1+deb13u1

converts between different systems of units

https://www.gnu.org/software/units/

sudo apt install units
  • Section: utils
  • Architecture: amd64
  • 2 依赖
  • 2 可选依赖
  • installed executable or alias match
  • 匹配方式:Units
Debian stable package indexes · deb.debian.org · Debian stable package indexes: units from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

units

nix profile install nixpkgs#units
  • installed executable or alias match
  • 匹配方式:Units
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/un/units/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt92%

units 2.23-1build2

converts between different systems of units

https://www.gnu.org/software/units/

sudo apt install units
  • Section: universe/utils
  • Architecture: amd64
  • 2 依赖
  • 2 可选依赖
  • installed executable or alias match
  • 匹配方式:Units
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: units from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk92%

units 2.23-r0

Units conversion and calculation program

https://www.gnu.org/software/units/

sudo apk add units
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: units
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Units
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: units from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

units-cur-update 2.23-r0

Units conversion and calculation program (currency database updater)

https://www.gnu.org/software/units/

sudo apk add units-cur-update
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: units
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Units
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: units-cur-update from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

units-doc 2.23-r0

Units conversion and calculation program (documentation)

https://www.gnu.org/software/units/

sudo apk add units-doc
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: units
  • installed executable or alias match
  • 匹配方式:Units
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: units-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf92%

units 2.27-2.fc45

A utility for converting amounts from one unit to another

https://www.gnu.org/software/units/units.html

sudo dnf install units
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: units
  • 8 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Units
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: units from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper92%

units 2.27-1.2

Conversion Utility

https://www.gnu.org/software/units/

sudo zypper install units
  • License: GPL-3.0-or-later
  • Category: Productivity/Scientific/Physics
  • Architecture: x86_64
  • Source Package: units
  • 5 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Units
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: units from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
Scoop92%

main/units

scoop install main/units
  • installed executable or alias match
  • 匹配方式:Units
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/units.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

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