macOS
brew install gnu-unitslocal Homebrew formula metadata
brew
GNU unit conversion tool. Version 2.27 via Homebrew; verified from local package data.
install
brew install gnu-unitslocal Homebrew formula metadata
sudo apk add unitsAlpine Linux edge package indexes · units · source: dl-cdn.alpinelinux.org
sudo apt install unitsDebian stable package indexes · units · source: deb.debian.org
sudo dnf install unitsFedora Rawhide package metadata · units · source: dl.fedoraproject.org
nix profile install nixpkgs#unitsnixpkgs package indexes · pkgs/by-name/un/units/package.nix · source: api.github.com
sudo zypper install unitsopenSUSE Tumbleweed package metadata · units · source: download.opensuse.org
winget install --id GNU.Units -eWindows Package Manager source index · GNU.Units · source: cdn.winget.microsoft.com
scoop install main/unitsScoop official bucket manifest trees · bucket/units.json · source: api.github.com
overview
GNU unit conversion tool
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
units | cli | global executable |
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.
https://www.gnu.org/software/units/
install metadata
| Package key | brew:gnu-units |
|---|---|
| Version | 2.27 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/gnu-units |
| Homepage | https://www.gnu.org/software/units/ |
| Upstream docs | https://www.gnu.org/software/units/manual/units.html |
| License | GPL-3.0-or-later |
| Source archive | https://ftpmirror.gnu.org/gnu/units/units-2.27.tar.gz |
| Dependencies | readline |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | 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" |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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/unitssource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.