Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, winget 安装 util-linux

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install util-linux

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install util-linux

MacPorts ports tree · devel/util-linux/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add util-linux

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

Debian apt已验证 · 92%
sudo apt install util-linux

Debian stable package indexes · util-linux · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install util-linux

Fedora Rawhide package metadata · util-linux · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#util-linux

nixpkgs package indexes · pkgs/by-name/ut/util-linux/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S util-linux

Arch Linux sync databases · util-linux · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install util-linux

openSUSE Tumbleweed package metadata · util-linux · 来源: download.opensuse.org

Windows

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

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

概览

软件包摘要

Collection of Linux utilities

命令和别名

  • addpart
  • agetty
  • bits
  • blkdiscard
  • blkid
  • blkpr
  • blkzone
  • blockdev
  • cal
  • cfdisk
  • chcpu
  • chmem
  • choom
  • chrt
  • col
  • colcrt
  • colrm
  • column
  • copyfilerange
  • coresched
  • ctrlaltdel
  • delpart
  • dmesg
  • eject
  • enosys
  • exch
  • fadvise
  • fallocate
  • fdisk
  • fincore
  • findfs
  • findmnt

历史

项目历史与用法

util-linux is a long-running collection of Linux system utilities. Its README calls it a random collection of Linux utilities, and the input executable list shows the breadth: partitioning, block-device inspection, login/session tools, scheduling tools, namespace tools, terminal utilities, UUID tools, and many small commands that scripts and administrators expect to exist.

项目历史

The official Git history reaches back to 1992-10-31, making util-linux one of the oldest still-maintained user-space utility collections in the Linux ecosystem. Its history is partly a history of consolidating small Unix/Linux commands that distributions needed to ship somewhere.

The README records an important naming era: from 2006 to 2010 the project was named util-linux-ng. Release notes for util-linux-ng 2.13, dated 2007-08-28, show the package modernizing around autotools, SELinux and audit support, mount changes, libblkid/libvolume_id probing, and additions such as rtcwake.

The AUTHORS file shows util-linux as an aggregation point for tools and libraries from many origins. It records commands merged from e2fsprogs, sysvinit, coreutils-derived code, schedutils, rfkill, and individual contributors, while also listing core libraries such as libblkid, libmount, libuuid, libsmartcols, and liblastlog2.

The project continues to evolve rather than merely preserve legacy commands. The 2.40 release notes introduced new commands and libraries such as lastlog2, lsclocks, enosys, exch, and setpgid, plus filtering and counter support in libsmartcols used by tools such as lsfd and lsblk.

采用历史

util-linux is foundational distribution infrastructure. The input package metadata maps the formula to Homebrew, MacPorts, Nix, pacman, and several Linux distribution package families, while also showing that distributions sometimes split the suite into packages named for individual components such as libblkid or bsdextrautils.

Its adoption history is tied to the Linux base system: administrators use its commands directly, shell scripts rely on them, and higher-level tools depend on its libraries for block-device probing, mount handling, UUIDs, and tabular output. Because the suite is broad, packagers often make policy decisions about which commands belong in minimal systems, base installs, rescue images, or compatibility packages.

使用方式

Common package-nerd workflows include using `lsblk`, `blkid`, `findmnt`, `mount`, `umount`, `fdisk`, `sfdisk`, `losetup`, `fstrim`, `uuidgen`, `flock`, `nsenter`, `unshare`, `taskset`, `chrt`, `logger`, `script`, `hexdump`, `more`, and many other commands from the same source package.

The suite also exposes libraries and command behavior that packagers track closely: libmount for mount table behavior, libblkid for probing, libuuid for UUID generation/parsing, libsmartcols for structured terminal tables, and release/deprecation notes that warn when scripts should move to newer flags or commands.

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

util-linux is package-nerd bedrock. It is not one tool but a source package that determines a large part of the Linux command-line substrate, and packaging it means deciding how old Unix interfaces, Linux-specific tools, libraries, translations, suid-sensitive programs, man pages, and distribution splits all fit together.

Its deprecation file is especially relevant to maintainers because it documents compatibility promises and migration paths, such as keeping deprecated utilities in maintenance mode for backward compatibility while recommending replacements like `blockdev --getsz`, `read`, `less` or `more`, and newer output options.

时间线

  • 1992-10-31: Official Git history begins.
  • 2006-2010: Project known as util-linux-ng according to the README.
  • 2007-08-28: util-linux-ng 2.13 release notes published.
  • 2024-03-27: Official tag v2.40 created.
  • 2024: util-linux 2.40 release notes introduce lastlog2, lsclocks, enosys, exch, and setpgid.
  • 2026-06-30: Official Git history shows ongoing development on libsmartcols.

Related projects

  • The official AUTHORS file records code or tools merged from e2fsprogs, sysvinit, coreutils-derived su, schedutils, and rfkill, and names libraries such as libblkid, libmount, libuuid, libsmartcols, and liblastlog2.

来源

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:repl

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
addpartcli全局可执行文件
agettycli全局可执行文件
bitscli全局可执行文件
blkdiscardcli全局可执行文件
blkidcli全局可执行文件
blkprcli全局可执行文件
blkzonecli全局可执行文件
blockdevcli全局可执行文件
calcli全局可执行文件
cfdiskcli全局可执行文件
chcpucli全局可执行文件
chmemcli全局可执行文件
choomcli全局可执行文件
chrtcli全局可执行文件
colcli全局可执行文件
colcrtcli全局可执行文件
colrmcli全局可执行文件
columncli全局可执行文件
copyfilerangecli全局可执行文件
coreschedcli全局可执行文件
ctrlaltdelcli全局可执行文件
delpartcli全局可执行文件
dmesgcli全局可执行文件
ejectcli全局可执行文件
enosyscli全局可执行文件
exchcli全局可执行文件
fadvisecli全局可执行文件
fallocatecli全局可执行文件
fdiskcli全局可执行文件
fincorecli全局可执行文件
findfscli全局可执行文件
findmntcli全局可执行文件
fsckcli全局可执行文件
fsck.cramfscli全局可执行文件
fsck.minixcli全局可执行文件
fsfreezecli全局可执行文件
fstrimcli全局可执行文件
getinocli全局可执行文件
hardlinkcli全局可执行文件
hexdumpcli全局可执行文件
hwclockcli全局可执行文件
ionicecli全局可执行文件
ipcmkcli全局可执行文件
ipcrmcli全局可执行文件
ipcscli全局可执行文件
irqtopcli全局可执行文件
isosizecli全局可执行文件
lastcli全局可执行文件
lastbcli全局可执行文件
lastlog2cli全局可执行文件
ldattachcli全局可执行文件
linux32cli全局可执行文件
linux64cli全局可执行文件
loggercli全局可执行文件
lookcli全局可执行文件
losetupcli全局可执行文件
lsblkcli全局可执行文件
lsclockscli全局可执行文件
lscpucli全局可执行文件
lsfdcli全局可执行文件
lsipccli全局可执行文件
lsirqcli全局可执行文件
lslockscli全局可执行文件
lsloginscli全局可执行文件
lsmemcli全局可执行文件
lsnscli全局可执行文件
mcookiecli全局可执行文件
mesgcli全局可执行文件
mkfscli全局可执行文件
mkfs.bfscli全局可执行文件
mkfs.cramfscli全局可执行文件
mkfs.minixcli全局可执行文件
mkswapcli全局可执行文件
morecli全局可执行文件
mountcli全局可执行文件
mountpointcli全局可执行文件
nameicli全局可执行文件
nologincli全局可执行文件
nsentercli全局可执行文件
partxcli全局可执行文件
pipeszcli全局可执行文件
pivot_rootcli全局可执行文件
prlimitcli全局可执行文件
readprofilecli全局可执行文件
renicecli全局可执行文件
resizepartcli全局可执行文件
revcli全局可执行文件
rfkillcli全局可执行文件
rtcwakecli全局可执行文件
scriptcli全局可执行文件
scriptlivecli全局可执行文件
scriptreplaycli全局可执行文件
setarchcli全局可执行文件
setpgidcli全局可执行文件
setsidcli全局可执行文件
settermcli全局可执行文件
sfdiskcli全局可执行文件
sulogincli全局可执行文件
swaplabelcli全局可执行文件
swapoffcli全局可执行文件
swaponcli全局可执行文件
switch_rootcli全局可执行文件
tasksetcli全局可执行文件
uclampsetcli全局可执行文件
ulcli全局可执行文件
umountcli全局可执行文件
uname26cli全局可执行文件
unsharecli全局可执行文件
utmpdumpcli全局可执行文件
uuiddcli全局可执行文件
uuidgencli全局可执行文件
uuidparsecli全局可执行文件
waitpidcli全局可执行文件
wallcli全局可执行文件
wdctlcli全局可执行文件
whereiscli全局可执行文件
wipefscli全局可执行文件
zramctlcli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://github.com/util-linux/util-linux

安装元数据

软件包元数据

软件包键brew:util-linux
版本2.42.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/util-linux
主页https://github.com/util-linux/util-linux
仓库https://github.com/util-linux/util-linux
上游文档https://github.com/util-linux/util-linux
许可证BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later AND LicenseRef-Homebrew-public-domain
源码归档https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.42/util-linux-2.42.2.tar.xz
最后更新2026-06-16T16:46:26Z
Pulseupdated
依赖gettext
构建依赖pkgconf
macOS 提供的库libxcrypt, ncurses, sqlite
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项The following tools are not supported for macOS, and are therefore not included: addpart agetty blkdiscard blkzone blockdev chcpu chmem choom chrt ctrlaltdel delpart dmesg eject fallocate fdformat fincore findmnt fsck fsfreeze fstrim hwclock ionice ipcrm ipcs kill last ldattach losetup lsblk lscpu lsipc lslocks lslogins lsmem lsns mount mountpoint nsenter partx pivot_root prlimit raw readprofile resizepart rfkill rtcwake script scriptlive setarch setterm sulogin swapoff swapon switch_root taskset umount unshare utmpdump uuidd wall wdctl zramctl

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

bsdextrautils 2.41-5

extra utilities from 4.4BSD-Lite

https://github.com/util-linux/util-linux

sudo apt install bsdextrautils
  • Section: utils
  • Architecture: amd64
  • Source Package: util-linux
  • 3 依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bsdextrautils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

bsdutils 1:2.41-5

basic utilities from 4.4BSD-Lite

https://github.com/util-linux/util-linux

sudo apt install bsdutils
  • Section: utils
  • Architecture: amd64
  • Source Package: util-linux
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: bsdutils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

eject 2.41-5

ejects CDs and operates CD-Changers under Linux

https://github.com/util-linux/util-linux

sudo apt install eject
  • Section: utils
  • Architecture: amd64
  • Source Package: util-linux
  • 2 依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: eject from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

fdisk 2.41-5

collection of partitioning utilities

https://github.com/util-linux/util-linux

sudo apt install fdisk
  • Section: utils
  • Architecture: amd64
  • Source Package: util-linux
  • 7 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: fdisk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

lastlog2 2.41-5

Read lastlog2 database

https://github.com/util-linux/util-linux

sudo apt install lastlog2
  • Section: utils
  • Architecture: amd64
  • Source Package: util-linux
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: lastlog2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libblkid-dev 2.41-5

block device ID library - headers

https://github.com/util-linux/util-linux

sudo apt install libblkid-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: util-linux
  • 4 依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libblkid-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libblkid1 2.41-5

block device ID library

https://github.com/util-linux/util-linux

sudo apt install libblkid1
  • Section: libs
  • Architecture: amd64
  • Source Package: util-linux
  • 1 依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libblkid1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libfdisk-dev 2.41-5

fdisk partitioning library - headers

https://github.com/util-linux/util-linux

sudo apt install libfdisk-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: util-linux
  • 5 依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libfdisk-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libfdisk1 2.41-5

fdisk partitioning library

https://github.com/util-linux/util-linux

sudo apt install libfdisk1
  • Section: libs
  • Architecture: amd64
  • Source Package: util-linux
  • 3 依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libfdisk1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

liblastlog2-2 2.41-5

lastlog2 database shared library

https://github.com/util-linux/util-linux

sudo apt install liblastlog2-2
  • Section: libs
  • Architecture: amd64
  • Source Package: util-linux
  • 2 依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: liblastlog2-2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

liblastlog2-dev 2.41-5

liblastlog2 development files

https://github.com/util-linux/util-linux

sudo apt install liblastlog2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: util-linux
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: liblastlog2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmount-dev 2.41-5

device mounting library - headers

https://github.com/util-linux/util-linux

sudo apt install libmount-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: util-linux
  • 5 依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmount-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmount1 2.41-5

device mounting library

https://github.com/util-linux/util-linux

sudo apt install libmount1
  • Section: libs
  • Architecture: amd64
  • Source Package: util-linux
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmount1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libpam-lastlog2 2.41-5

lastlog2 database PAM module

https://github.com/util-linux/util-linux

sudo apt install libpam-lastlog2
  • Section: admin
  • Architecture: amd64
  • Source Package: util-linux
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libpam-lastlog2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libsmartcols-dev 2.41-5

smart column output alignment library - headers

https://github.com/util-linux/util-linux

sudo apt install libsmartcols-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: util-linux
  • 3 依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libsmartcols-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libsmartcols1 2.41-5

smart column output alignment library

https://github.com/util-linux/util-linux

sudo apt install libsmartcols1
  • Section: libs
  • Architecture: amd64
  • Source Package: util-linux
  • 1 依赖
  • normalized package name match
  • 匹配方式:Util Linux
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libsmartcols1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

来源线索

由仓库数据生成

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