# 安装 util-linux

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

## 安装

```sh
sudo av install brew:util-linux
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install util-linux
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install util-linux
```

  证据: MacPorts ports tree: devel/util-linux/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add util-linux
```

  证据: Alpine Linux edge package indexes: util-linux from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install util-linux
```

  证据: Debian stable package indexes: util-linux from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install util-linux
```

  证据: Fedora Rawhide package metadata: util-linux from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#util-linux
```

  证据: nixpkgs package indexes: pkgs/by-name/ut/util-linux/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S util-linux
```

  证据: Arch Linux sync databases: util-linux from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install util-linux
```

  证据: openSUSE Tumbleweed package metadata: util-linux from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id Cal.Cal -e
```

  证据: Windows Package Manager source index: Cal.Cal from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:util-linux
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/util-linux>
- **版本:** 2.42.1
- **来源摘要:** Collection of Linux utilities
- **主页:** <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.1.tar.xz>
- **更新:** 2026-05-23T22:41:32+09:00
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- addpart (cli)
- agetty (cli)
- bits (cli)
- blkdiscard (cli)
- blkid (cli)
- blkpr (cli)
- blkzone (cli)
- blockdev (cli)
- cal (cli)
- cfdisk (cli)
- chcpu (cli)
- chmem (cli)
- choom (cli)
- chrt (cli)
- col (cli)
- colcrt (cli)
- colrm (cli)
- column (cli)
- copyfilerange (cli)
- coresched (cli)
- ctrlaltdel (cli)
- delpart (cli)
- dmesg (cli)
- eject (cli)
- enosys (cli)
- exch (cli)
- fadvise (cli)
- fallocate (cli)
- fdisk (cli)
- fincore (cli)
- findfs (cli)
- findmnt (cli)
- flock (cli)
- fsck (cli)
- fsck.cramfs (cli)
- fsck.minix (cli)
- fsfreeze (cli)
- fstrim (cli)
- getino (cli)
- getopt (cli)
- hardlink (cli)
- hexdump (cli)
- hwclock (cli)
- ionice (cli)
- ipcmk (cli)
- ipcrm (cli)
- ipcs (cli)
- irqtop (cli)
- isosize (cli)
- last (cli)
- lastb (cli)
- lastlog2 (cli)
- ldattach (cli)
- linux32 (cli)
- linux64 (cli)
- logger (cli)
- look (cli)
- losetup (cli)
- lsblk (cli)
- lsclocks (cli)
- lscpu (cli)
- lsfd (cli)
- lsipc (cli)
- lsirq (cli)
- lslocks (cli)
- lslogins (cli)
- lsmem (cli)
- lsns (cli)
- mcookie (cli)
- mesg (cli)
- mkfs (cli)
- mkfs.bfs (cli)
- mkfs.cramfs (cli)
- mkfs.minix (cli)
- mkswap (cli)
- more (cli)
- mount (cli)
- mountpoint (cli)
- namei (cli)
- nologin (cli)
- nsenter (cli)
- partx (cli)
- pipesz (cli)
- pivot_root (cli)
- prlimit (cli)
- readprofile (cli)
- rename (cli)
- renice (cli)
- resizepart (cli)
- rev (cli)
- rfkill (cli)
- rtcwake (cli)
- script (cli)
- scriptlive (cli)
- scriptreplay (cli)
- setarch (cli)
- setpgid (cli)
- setsid (cli)
- setterm (cli)
- sfdisk (cli)
- sulogin (cli)
- swaplabel (cli)
- swapoff (cli)
- swapon (cli)
- switch_root (cli)
- taskset (cli)
- uclampset (cli)
- ul (cli)
- umount (cli)
- uname26 (cli)
- unshare (cli)
- utmpdump (cli)
- uuidd (cli)
- uuidgen (cli)
- uuidparse (cli)
- waitpid (cli)
- wall (cli)
- wdctl (cli)
- whereis (cli)
- wipefs (cli)
- zramctl (cli)
- 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 (别名)
- flock (别名)
- fsck (别名)
- fsck.cramfs (别名)
- fsck.minix (别名)
- fsfreeze (别名)
- fstrim (别名)
- getino (别名)
- getopt (别名)
- hardlink (别名)
- hexdump (别名)
- hwclock (别名)
- ionice (别名)
- ipcmk (别名)
- ipcrm (别名)
- ipcs (别名)
- irqtop (别名)
- isosize (别名)
- last (别名)
- lastb (别名)
- lastlog2 (别名)
- ldattach (别名)
- linux32 (别名)
- linux64 (别名)
- logger (别名)
- look (别名)
- losetup (别名)
- lsblk (别名)
- lsclocks (别名)
- lscpu (别名)
- lsfd (别名)
- lsipc (别名)
- lsirq (别名)
- lslocks (别名)
- lslogins (别名)
- lsmem (别名)
- lsns (别名)
- mcookie (别名)
- mesg (别名)
- mkfs (别名)
- mkfs.bfs (别名)
- mkfs.cramfs (别名)
- mkfs.minix (别名)
- mkswap (别名)
- more (别名)
- mount (别名)
- mountpoint (别名)
- namei (别名)
- nologin (别名)
- nsenter (别名)
- partx (别名)
- pipesz (别名)
- pivot_root (别名)
- prlimit (别名)
- readprofile (别名)
- rename (别名)
- renice (别名)
- resizepart (别名)
- rev (别名)
- rfkill (别名)
- rtcwake (别名)
- script (别名)
- scriptlive (别名)
- scriptreplay (别名)
- setarch (别名)
- setpgid (别名)
- setsid (别名)
- setterm (别名)
- sfdisk (别名)
- sulogin (别名)
- swaplabel (别名)
- swapoff (别名)
- swapon (别名)
- switch_root (别名)
- taskset (别名)
- uclampset (别名)
- ul (别名)
- umount (别名)
- uname26 (别名)
- unshare (别名)
- utmpdump (别名)
- uuidd (别名)
- uuidgen (别名)
- uuidparse (别名)
- waitpid (别名)
- wall (别名)
- wdctl (别名)
- whereis (别名)
- wipefs (别名)
- zramctl (别名)

## 依赖

- gettext

## 构建依赖

- pkgconf

## macOS 提供的库

- libxcrypt
- ncurses
- sqlite

## 安装行为

- post-install 钩子: 未定义
- Caveats: 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
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 2.42.1
- 管理器更新时间: 2026-05-23
- 本地数据: ok
- 上游仓库: https://github.com/util-linux/util-linux
- info: No cached GitHub release or tag data was available.

## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / medium
- generalized runtime or code generation signal

## 相关链接

- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [systemd](https://www.automicvault.com/pkg/brew/systemd/) - Popular package that depends on this formula.
- [btrfs-progs](https://www.automicvault.com/pkg/brew/btrfs-progs/) - Popular package that depends on this formula.
- [gnu-getopt](https://www.automicvault.com/pkg/brew/gnu-getopt/) - Shares the same upstream source repository.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/)

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
