Back to Coreutils

Installation

docs/src/installation.md

0.8.05.6 KB
Original Source
<!-- spell-checker:ignore pacman pamac nixpkgs openmandriva conda winget openembedded yocto bblayers bitbake MSYS -->

Installation

This is a list of uutils packages in various distributions and package managers. Note that these are packaged by third-parties and the packages might contain patches.

You can also build uutils from source.

<!-- toc -->

Cargo

shell
# Unix like
cargo install coreutils --features unix --locked
# Windows
cargo install coreutils --features windows --locked

Linux

Alpine

shell
apk update uutils-coreutils

Note: Requires the edge repository.

Arch

shell
pacman -S uutils-coreutils

Debian

shell
apt install rust-coreutils
# To use it:
export PATH=/usr/lib/cargo/bin/coreutils:$PATH

Fedora

shell
dnf install uutils-coreutils
# To use it:
export PATH=/usr/libexec/uutils-coreutils:$PATH

Gentoo

shell
emerge -pv sys-apps/uutils-coreutils

Manjaro

shell
pacman -S uutils-coreutils
# or
pamac install uutils-coreutils

NixOS

shell
nix-env -iA nixos.uutils-coreutils

OpenMandriva Lx

shell
dnf install uutils-coreutils

RHEL/AlmaLinux/CENTOS Stream/Rocky Linux/EPEL 9

shell
# Install EPEL 9 - Specific For RHEL please check codeready-builder-for-rhel-9 First then install epel
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y
# Install Core Utils
dnf install uutils-coreutils
# To use it:
export PATH=/usr/libexec/uutils-coreutils:$PATH

Ubuntu

shell
apt install rust-coreutils
# To use it:
export PATH=/usr/lib/cargo/bin/coreutils:$PATH

AUR

AUR package

Rust rewrite of the GNU coreutils (main branch).

MacOS

Homebrew

shell
brew install uutils-coreutils

MacPorts

port install coreutils-uutils

FreeBSD

sh
pkg install rust-coreutils

Windows

Winget

shell
winget install uutils.coreutils

Scoop

Scoop package

shell
scoop install uutils-coreutils

MSYS2

MSYS2 package (Windows native)

MSYS2 package (Cygwin)

Alternative installers

Conda

Conda package

conda install -c conda-forge uutils-coreutils

Yocto

Yocto recipe

The uutils-coreutils recipe is provided as part of the meta-openembedded yocto layer. Clone poky and meta-openembedded, add meta-openembedded/meta-oe as layer in your build/conf/bblayers.conf file, and then either call bitbake uutils-coreutils, or use PREFERRED_PROVIDER_coreutils = "uutils-coreutils" in your build/conf/local.conf file and then build your usual yocto image.