How To Install coreutils on Rocky Linux 8

In this tutorial we learn how to install coreutils on Rocky Linux 8. coreutils is A set of basic GNU tools commonly used in shell scripts

Introduction

In this tutorial we learn how to install coreutils on Rocky Linux 8.

What is coreutils

These are the GNU core utilities. This package is the combination of the old GNU fileutils, sh-utils, and textutils packages.

We can use yum or dnf to install coreutils on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install coreutils.

Install coreutils on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install coreutils using dnf by running the following command:

sudo dnf -y install coreutils

Install coreutils on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install coreutils using yum by running the following command:

sudo yum -y install coreutils

How To Uninstall coreutils on Rocky Linux 8

To uninstall only the coreutils package we can use the following command:

sudo dnf remove coreutils

coreutils Package Contents on Rocky Linux 8

/usr/bin/[
/usr/bin/arch
/usr/bin/b2sum
/usr/bin/base32
/usr/bin/base64
/usr/bin/basename
/usr/bin/cat
/usr/bin/chcon
/usr/bin/chgrp
/usr/bin/chmod
/usr/bin/chown
/usr/bin/cksum
/usr/bin/comm
/usr/bin/cp
/usr/bin/csplit
/usr/bin/cut
/usr/bin/date
/usr/bin/dd
/usr/bin/df
/usr/bin/dir
/usr/bin/dircolors
/usr/bin/dirname
/usr/bin/du
/usr/bin/echo
/usr/bin/env
/usr/bin/expand
/usr/bin/expr
/usr/bin/factor
/usr/bin/false
/usr/bin/fmt
/usr/bin/fold
/usr/bin/groups
/usr/bin/head
/usr/bin/hostid
/usr/bin/id
/usr/bin/install
/usr/bin/join
/usr/bin/link
/usr/bin/ln
/usr/bin/logname
/usr/bin/ls
/usr/bin/md5sum
/usr/bin/mkdir
/usr/bin/mkfifo
/usr/bin/mknod
/usr/bin/mktemp
/usr/bin/mv
/usr/bin/nice
/usr/bin/nl
/usr/bin/nohup
/usr/bin/nproc
/usr/bin/numfmt
/usr/bin/od
/usr/bin/paste
/usr/bin/pathchk
/usr/bin/pinky
/usr/bin/pr
/usr/bin/printenv
/usr/bin/printf
/usr/bin/ptx
/usr/bin/pwd
/usr/bin/readlink
/usr/bin/realpath
/usr/bin/rm
/usr/bin/rmdir
/usr/bin/runcon
/usr/bin/seq
/usr/bin/sha1sum
/usr/bin/sha224sum
/usr/bin/sha256sum
/usr/bin/sha384sum
/usr/bin/sha512sum
/usr/bin/shred
/usr/bin/shuf
/usr/bin/sleep
/usr/bin/sort
/usr/bin/split
/usr/bin/stat
/usr/bin/stdbuf
/usr/bin/stty
/usr/bin/sum
/usr/bin/sync
/usr/bin/tac
/usr/bin/tail
/usr/bin/tee
/usr/bin/test
/usr/bin/timeout
/usr/bin/touch
/usr/bin/tr
/usr/bin/true
/usr/bin/truncate
/usr/bin/tsort
/usr/bin/tty
/usr/bin/uname
/usr/bin/unexpand
/usr/bin/uniq
/usr/bin/unlink
/usr/bin/users
/usr/bin/vdir
/usr/bin/wc
/usr/bin/who
/usr/bin/whoami
/usr/bin/yes
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/e2d76599a52aa76a7b110e806bb8637e49ee89
/usr/lib/.build-id/06
/usr/lib/.build-id/06/7eed1598bd36d30db6f6ff8a693c4599d9263d
/usr/lib/.build-id/09
/usr/lib/.build-id/09/3e8423a30eb6e12cd517b282d256dfffb0ca30
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/5d690cb1db497ecbc86c69521064d292b42068
/usr/lib/.build-id/11
/usr/lib/.build-id/11/937bd3a281a56bb6f76d509a7aebf2d858ecb5
/usr/lib/.build-id/12
/usr/lib/.build-id/12/fa28e56298b101c88f31e2d500a18f26b5b5e8
/usr/lib/.build-id/14
/usr/lib/.build-id/14/e5db75e2138a81b32307f4ed52ce1dfba90bbb
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/fc6661d6e7bc4496a92371e0b449bb6fa3b927
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/357fa37c4c929fdbed8d8d3f5e8a8b93231bbd
/usr/lib/.build-id/1b/9b129886454054ab7778dc351dee8e4b9faed6
/usr/lib/.build-id/1b/c30917ffe88334930758e17d4e85939a473041
/usr/lib/.build-id/22
/usr/lib/.build-id/22/c3bf5f4d56aeace5660cafc72238cf10f4db22
/usr/lib/.build-id/23
/usr/lib/.build-id/23/7553cc2e2875e4071f214e863b7d05e5b573e2
/usr/lib/.build-id/35
/usr/lib/.build-id/35/026da570faced73ca50c1c97e3df1e2850a6e8
/usr/lib/.build-id/36
/usr/lib/.build-id/36/d8253d412f40bcb91f5249dff41e1b4e0117e2
/usr/lib/.build-id/37
/usr/lib/.build-id/37/0fe32dd8a27d7991123dec9c2faed9897dddd7
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/7887bcd6657a3df52a0fd73ce3ee69fb281a75
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/b93aa062fd95fca4825b0c399c9c9c9a9898cf
/usr/lib/.build-id/3e/fe356f24b348f20120165d71efafe27022291c
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/d3ea3d58304a4bc522929d8f8470da18e7a155
/usr/lib/.build-id/41
/usr/lib/.build-id/41/011828fd36ee78087014a00331df41cc0b7c0d
/usr/lib/.build-id/46
/usr/lib/.build-id/46/c71b34e04984a09a8bdb6801503943578bd112
/usr/lib/.build-id/49
/usr/lib/.build-id/49/a0c78ac71e0309a96378c4760827371796020d
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/2a9e9b0177f78f7b47341b8a08b24a0ac8565e
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/389bdcdd89d885c79e47eec6cc2d616519c50b
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/d631d5c1953995e719189043758f0b00f957c1
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/7a5ee162d2b12c04a232c21f713b943ab1c429
/usr/lib/.build-id/4f/ebdb7f981d9ab2f55d43efba4051108d3e3eaf
/usr/lib/.build-id/53
/usr/lib/.build-id/53/558b291fe26311ba1469d6315cb2b2980e0ace
/usr/lib/.build-id/53/d9eaaa5ef6111f92787d008acaaf9b7e31ced3
/usr/lib/.build-id/55
/usr/lib/.build-id/55/194c7701318e906ced75244718a9418f425508
/usr/lib/.build-id/55/abba8f23d63bddb0d3093776ef78a643adedac
/usr/lib/.build-id/56
/usr/lib/.build-id/56/18b2e9074ca00bb78b07ddd91823089b7b7759
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/d30a00bfef3e6dcfc0ceff8d27b033d3ccc59b
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/623bca513e5c9ba9d67e85d3328575e16911fa
/usr/lib/.build-id/5f/af764edf25c349938bfbc0fc64e13f708a13b8
/usr/lib/.build-id/62
/usr/lib/.build-id/62/67891da7dbb62b346b73e5e3bc2662ab8798a9
/usr/lib/.build-id/63
/usr/lib/.build-id/63/0a2c43e5b249fc46d6228dd0bcbf98ee274e16
/usr/lib/.build-id/63/376234fd6058479b7a01b91bc5d39c485b7052
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/978c4883b15ff8b9b474cfbff4a9d799f9cd19
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/667106a5a911e593bf294c20b38af60ee3448f
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/ab6d35949b56dbafc851fb154ff6c30cdea75d
/usr/lib/.build-id/70
/usr/lib/.build-id/70/5e261774f77d0d772b826b85eeedb0738ddf9d
/usr/lib/.build-id/75
/usr/lib/.build-id/75/64a6a5b3f20ba7313f0b3873b4faf6fd6db673
/usr/lib/.build-id/76
/usr/lib/.build-id/76/08884e22753b151378e94d94159f51e3a563bd
/usr/lib/.build-id/76/c5d309c1d8a555c20a18a0f910b51c0d7ca61f
/usr/lib/.build-id/78
/usr/lib/.build-id/78/9f4dd056016a02ac06821c58a2290131c63bc9
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/95593bc19187307db4d81b23bcbcb6b70aa526
/usr/lib/.build-id/7c/a06ad10788bcb67c5c4eb5e42670c332bb3e74
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/0b965720c0b755fd5d97e615a254ce88074541
/usr/lib/.build-id/80
/usr/lib/.build-id/80/2878cb6f9cd442f7c61f991fc83bd82795a3f3
/usr/lib/.build-id/80/e970309f17c209f7fe9761ead29ab99ad7ce28
/usr/lib/.build-id/81
/usr/lib/.build-id/81/c2264cd340339ca21468e839056d791def39ee
/usr/lib/.build-id/82
/usr/lib/.build-id/82/6bd759a3a5cd0a68fbeecb26d465fc8021ba89
/usr/lib/.build-id/84
/usr/lib/.build-id/84/b3e3cccdb9ddf10f3336737592d0febe135603
/usr/lib/.build-id/87
/usr/lib/.build-id/87/838bc7edefd45856173d71a6b68e28d2f0c1c5
/usr/lib/.build-id/88
/usr/lib/.build-id/88/60ff4db4bd54759ccc0f5494aaf90bea1d841d
/usr/lib/.build-id/88/c48a9a950f70e30f478350746fe26c452c9e88
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/5ad82994dd1f34e802cb16e52534771b38ea99
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/f493a8cd90e71cc28b8f0a67c44031fd01e09d
/usr/lib/.build-id/91
/usr/lib/.build-id/91/a451a5bc69885a0466a458290ccdfe03d02982
/usr/lib/.build-id/92
/usr/lib/.build-id/92/6bf31c06769b5f5ea9160ea8a2e66937a6ce82
/usr/lib/.build-id/96
/usr/lib/.build-id/96/53e405dcbbe926418742ec5b6a7ab3074dbbd3
/usr/lib/.build-id/97
/usr/lib/.build-id/97/1518a75e84159b209bd9b257efbeb1e5db45cb
/usr/lib/.build-id/97/83d3c8be070d3c26c99caccd31be67ff93dc6e
/usr/lib/.build-id/97/f036abdad34d895b693b299e0fa34f75da0f5e
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/3eb3bd8818d4ad922377ff115aece914d0a89f
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/1561615448a805e0332b34a1da237286f6b6fc
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/62c54730da801ad677c71b79b996c16ec5629c
/usr/lib/.build-id/9f/7a91f8360904435676e2f4c0f3457e39c43d39
/usr/lib/.build-id/9f/c2e79144f932a142b2cf607618fd15d30d878b
/usr/lib/.build-id/9f/f1c85fbf5751712804c78e21fa269e87012f6b
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/3a756227bd86867adb9667d8e16fdbb304b7a5
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/71d14c781f331d52077cdebf234a534e5fed41
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/59525ef584d186443beaf089bce9cf2fa48092
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/795da08442c2d997626732e721eb19d3a91dae
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/d5e73666eab59c6356df2c2ce54289b372a44e
/usr/lib/.build-id/af
/usr/lib/.build-id/af/8d3c65dae8aed6a97e6bade00576eb412f5a9e
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/8fd17ba4f8d7574a592f3a9585e1e7ab273d76
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/5da7ddaf8c6073a68e9555a488eef538a014f9
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/d2795c6ebf2d77f9802a2a8189893b3bfe8eed
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/9cefe8582917a81f71d7ed277b9f933e50fa13
/usr/lib/.build-id/be
/usr/lib/.build-id/be/46852c279e854fb9312ad8e2b233c7bbab0ce1
/usr/lib/.build-id/be/7efdefb1c205582da269502bcc46e55ad23ce2
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/79fe0fefa41ec599899fc5bac3792330f524ea
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/ef6a64b4ed1bb7b0f2a64915dba711aaf615e6
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/0cd4bdbee5025a7f52bdd86e1851f5c683a6d8
/usr/lib/.build-id/c6/10152ab6e68e7ac8c4d6242d81ef60c0cc3b1d
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/dbeaa54ba9f8f561eecf7595dd0dd3850e3985
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/4f50a3aa92893fde846fa385f0a6b977f4b9a0
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/dac49def805ae0f95ee5d1392012bd62141967
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/4249773e91e33939a1f2b9df0267edd54932d1
/usr/lib/.build-id/d3/9a4fc824e28255bfc338dcf267a006ef799f5c
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/c821b40306be44cac4991b0aa45c7abc50188c
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/e301756650ed59a5435164f4bf51b8a9c0ae57
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/02107bd89e6a89e0b688a44649b6a1b18fb3af
/usr/lib/.build-id/de
/usr/lib/.build-id/de/9c5536f2e07847bfb833564a91ca593f8d8bb0
/usr/lib/.build-id/df
/usr/lib/.build-id/df/06795e2946c8a2ff19203bca086e194495ff81
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/36d3c74d52f28d5c7afb43ce2714159c6c7483
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/62cef6f7fa42d68e023dc3456b56e3d1b70855
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/f6782757c8cf3bb7f93c55efaf1c0fd67b0d93
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/0d16911c58f3b0c6571127d8a96be908048a58
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/e739cfd199467b8c3c87ecbdfd4ae28612afce
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/6d16871d33ba44b9a4e105901abb5ccb2e3ada
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/c6ca74d64192c784c7657616c7b538f28a3935
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/1c1132b7e5815540fb40ef3f5c28413237a133
/usr/libexec/coreutils
/usr/libexec/coreutils/libstdbuf.so
/usr/sbin/chroot

References

Summary

In this tutorial we learn how to install coreutils on Rocky Linux 8 using yum and dnf.