macOS
brew install gnu-unitslocal Homebrew formula metadata
安装
brew install gnu-unitslocal Homebrew formula metadata
sudo apk add unitsAlpine Linux edge package indexes · units · 来源: dl-cdn.alpinelinux.org
sudo dnf install unitsFedora Rawhide package metadata · units · 来源: dl.fedoraproject.org
nix profile install nixpkgs#unitsnixpkgs package indexes · pkgs/by-name/un/units/package.nix · 来源: api.github.com
sudo zypper install unitsopenSUSE Tumbleweed package metadata · units · 来源: download.opensuse.org
winget install --id GNU.Units -eWindows Package Manager source index · GNU.Units · 来源: cdn.winget.microsoft.com
scoop install main/unitsScoop official bucket manifest trees · bucket/units.json · 来源: api.github.com
概览
GNU unit conversion tool
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
units | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.gnu.org/software/units/
安装元数据
| 软件包键 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gnu-units |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
GNU.Units
winget install --id GNU.Units -eunits 2.24-1+deb13u1
converts between different systems of units
https://www.gnu.org/software/units/
sudo apt install unitsunits
nix profile install nixpkgs#unitsunits 2.23-1build2
converts between different systems of units
https://www.gnu.org/software/units/
sudo apt install unitsunits 2.23-r0
Units conversion and calculation program
https://www.gnu.org/software/units/
sudo apk add unitsunits-cur-update 2.23-r0
Units conversion and calculation program (currency database updater)
https://www.gnu.org/software/units/
sudo apk add units-cur-updateunits-doc 2.23-r0
Units conversion and calculation program (documentation)
https://www.gnu.org/software/units/
sudo apk add units-docunits 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 unitsunits 2.27-1.2
Conversion Utility
https://www.gnu.org/software/units/
sudo zypper install unitsmain/units
scoop install main/units来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.