# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 coreutils

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

## 安装

```sh
sudo av install brew:coreutils
```

## 代理安全回答

coreutils supplies file utilities that can read, delete, and transform local data at scale.

- **凭据访问:** Can read files and environment exposed to the agent session.
- **远程变更:** Primarily local, but can prepare data for other remote tools.
- **发布/制品风险:** Can delete or rewrite build outputs and generated artifacts.
- **推荐控制:** Gate destructive file operations over broad or sensitive paths.
- **代理使用指南:** Allow narrow reads; require approval for recursive deletes, overwrites, and secret-path reads.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install coreutils
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install coreutils
```

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

### Linux

- apk (92%):

```sh
sudo apk add coreutils
```

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

- Debian apt (92%):

```sh
sudo apt install coreutils
```

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

- dnf (92%):

```sh
sudo dnf install coreutils
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#coreutils
```

  证据: nixpkgs package indexes: coreutils from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S coreutils
```

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

- zypper (92%):

```sh
sudo zypper install coreutils
```

  证据: openSUSE Tumbleweed package metadata: coreutils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/coreutils
```

  证据: Scoop official bucket manifest trees: bucket/coreutils.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id uutils.coreutils -e
```

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

## 软件包事实

- **软件包键:** brew:coreutils
- **软件包管理器:** Homebrew
- **版本:** 9.11
- **来源摘要:** GNU File, Shell, and Text utilities
- **主页:** <https://www.gnu.org/software/coreutils/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- b2sum (别名)
- base32 (别名)
- basenc (别名)
- dir (别名)
- dircolors (别名)
- factor (别名)
- g[ (别名)
- gb2sum (别名)
- gbase32 (别名)
- gbase64 (别名)
- gbasename (别名)
- gbasenc (别名)
- gcat (别名)
- gchgrp (别名)
- gchmod (别名)
- gchown (别名)
- gchroot (别名)
- gcksum (别名)
- gcomm (别名)
- gcp (别名)
- gcsplit (别名)
- gcut (别名)
- gdate (别名)
- gdd (别名)
- gdf (别名)
- gdir (别名)
- gdircolors (别名)
- gdirname (别名)
- gdu (别名)
- gecho (别名)
- genv (别名)
- gexpand (别名)
- gexpr (别名)
- gfactor (别名)
- gfalse (别名)
- gfmt (别名)
- gfold (别名)
- ggroups (别名)
- ghead (别名)
- ghostid (别名)
- gid (别名)
- ginstall (别名)
- gjoin (别名)
- glink (别名)
- gln (别名)
- glogname (别名)
- gls (别名)
- gmd5sum (别名)
- gmkdir (别名)
- gmkfifo (别名)
- gmknod (别名)
- gmktemp (别名)
- gmv (别名)
- gnice (别名)
- gnl (别名)
- gnohup (别名)
- gnproc (别名)
- gnumfmt (别名)
- god (别名)
- gpaste (别名)
- gpathchk (别名)
- gpinky (别名)
- gpr (别名)
- gprintenv (别名)
- gprintf (别名)
- gptx (别名)
- gpwd (别名)
- greadlink (别名)
- grealpath (别名)
- grm (别名)
- grmdir (别名)
- gseq (别名)
- gsha1sum (别名)
- gsha224sum (别名)
- gsha256sum (别名)
- gsha384sum (别名)
- gsha512sum (别名)
- gshred (别名)
- gshuf (别名)
- gsleep (别名)
- gsort (别名)
- gsplit (别名)
- gstat (别名)
- gstdbuf (别名)
- gstty (别名)
- gsum (别名)
- gsync (别名)
- gtac (别名)
- gtail (别名)
- gtee (别名)
- gtest (别名)
- gtimeout (别名)
- gtouch (别名)
- gtr (别名)
- gtrue (别名)
- gtruncate (别名)
- gtsort (别名)
- gtty (别名)
- guname (别名)
- gunexpand (别名)
- guniq (别名)
- gunlink (别名)
- gusers (别名)
- gvdir (别名)
- gwc (别名)
- gwho (别名)
- gwhoami (别名)
- gyes (别名)
- hostid (别名)
- md5sum (别名)
- nproc (别名)
- numfmt (别名)
- pinky (别名)
- ptx (别名)
- realpath (别名)
- sha1sum (别名)
- sha224sum (别名)
- sha256sum (别名)
- sha384sum (别名)
- sha512sum (别名)
- shred (别名)
- shuf (别名)
- stdbuf (别名)
- tac (别名)
- timeout (别名)
- truncate (别名)
- vdir (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 9.11
## 项目历史与用法

GNU Coreutils is the GNU Project's distribution of the standard command-line file, shell, and text utilities used throughout Unix-like systems. In package-manager practice it is treated less as a single application than as a portable baseline for commands such as cat, chmod, cp, date, ls, sort, tail, tr, and many checksum and text-processing tools.

### 项目历史

The package sits in the GNU system layer: its official description presents it as the GNU file, shell, and text utilities, and the GNU FTP archive shows coreutils release tarballs from the 5.x series onward, including coreutils 5.0 in April 2003. That release trail made the name 'coreutils' the umbrella package users and distributors expect when they want GNU behavior for the traditional small utilities.

### 采用历史

Coreutils became a normal dependency surface for GNU/Linux distributions and a compatibility package on non-GNU systems. The Homebrew formula exposes many commands with a g-prefix on macOS so users can opt into GNU semantics without replacing the platform-provided BSD userland.

### 使用方式

Users normally install coreutils for scripts and interactive shell workflows that rely on GNU options or GNU extensions. On macOS the package is especially common in development environments where cross-platform shell scripts assume commands such as gdate, gsort, greadlink, or gtimeout.

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

Coreutils is one of the canonical examples of packaging a userland as a coherent compatibility layer. Its release cadence, prefixing strategy on macOS, GPL licensing, and overlap with POSIX and BSD utilities make it a frequent packaging-policy test case.

### 时间线

- 2003: GNU FTP archive lists coreutils 5.0 release tarballs.
- 2009: GNU FTP archive lists coreutils 8.x release tarballs, reflecting continued maintenance under the coreutils package name.
- Present: Homebrew packages GNU Coreutils as a system utility collection with GNU-prefixed commands on macOS.

### Related projects

- Related userland packages include BusyBox, Toybox, uutils coreutils, BSD userland utilities, and GNU findutils, grep, sed, and tar.

### 来源

- <https://www.gnu.org/software/coreutils/>
- <https://www.gnu.org/software/coreutils/manual/coreutils.html>
- <https://ftp.gnu.org/gnu/coreutils/>
- <https://formulae.brew.sh/formula/coreutils>


## 安全说明

broad file and shell utility collection.

- **Geiger 风险:** blue / 高
- broad file and shell utility collection
- **审批门规则:** 8

## 其他软件包管理器记录

- Debian apt - coreutils - 9.7-3: normalized package name match | Debian stable package indexes: coreutils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU core utilities | https://gnu.org/software/coreutils
- Nix - coreutils: normalized package name match | nixpkgs package indexes: coreutils from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - coreutils - 9.4-3ubuntu6: normalized package name match | Ubuntu 24.04 LTS package indexes: coreutils from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNU core utilities | http://gnu.org/software/coreutils
- apk - coreutils - 9.11-r0: normalized package name match | Alpine Linux edge package indexes: coreutils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The basic file, shell and text manipulation utilities | https://www.gnu.org/software/coreutils/
- apk - coreutils-doc - 9.11-r0: normalized package name match | Alpine Linux edge package indexes: coreutils-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The basic file, shell and text manipulation utilities (documentation) | https://www.gnu.org/software/coreutils/
- apk - coreutils-env - 9.11-r0: normalized package name match | Alpine Linux edge package indexes: coreutils-env from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The basic file, shell and text manipulation utilities | https://www.gnu.org/software/coreutils/
- apk - coreutils-fmt - 9.11-r0: normalized package name match | Alpine Linux edge package indexes: coreutils-fmt from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The basic file, shell and text manipulation utilities | https://www.gnu.org/software/coreutils/
- apk - coreutils-sha512sum - 9.11-r0: normalized package name match | Alpine Linux edge package indexes: coreutils-sha512sum from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The basic file, shell and text manipulation utilities | https://www.gnu.org/software/coreutils/
- dnf - coreutils - 9.11-5.fc45: normalized package name match | Fedora Rawhide package metadata: coreutils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A set of basic GNU tools commonly used in shell scripts | https://www.gnu.org/software/coreutils/
- dnf - coreutils-common - 9.11-5.fc45: normalized package name match | Fedora Rawhide package metadata: coreutils-common from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | coreutils common optional components | https://www.gnu.org/software/coreutils/
- dnf - coreutils-single - 9.11-5.fc45: normalized package name match | Fedora Rawhide package metadata: coreutils-single from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | coreutils multicall binary | https://www.gnu.org/software/coreutils/
- pacman - coreutils - 9.11-2: normalized package name match | Arch Linux sync databases: coreutils from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | The basic file, shell and text manipulation utilities of the GNU operating system | https://www.gnu.org/software/coreutils/
- zypper - coreutils - 9.11-4.3: normalized package name match | openSUSE Tumbleweed package metadata: coreutils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | GNU Core Utilities | https://www.gnu.org/software/coreutils/
- zypper - coreutils-doc - 9.11-4.3: normalized package name match | openSUSE Tumbleweed package metadata: coreutils-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Documentation for the GNU Core Utilities | https://www.gnu.org/software/coreutils/
- zypper - coreutils-lang - 9.11-4.3: normalized package name match | openSUSE Tumbleweed package metadata: coreutils-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Translations for package coreutils | https://www.gnu.org/software/coreutils/
- zypper - coreutils-single - 9.11-4.3: normalized package name match | openSUSE Tumbleweed package metadata: coreutils-single from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | GNU Core Utilities | https://www.gnu.org/software/coreutils/


## Combined YAML source

View the package source record on GitHub. [combined/coreutils.yml](https://github.com/mxcl/pkgdb/blob/main/combined/coreutils.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- approval-gate seed metadata
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
