How To Install coreutils on CentOS 8
Introduction
In this tutorial we learn how to install coreutils
on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install coreutils.
Install coreutils on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install coreutils
using dnf
by running the following command:
sudo dnf -y install coreutils
Install coreutils on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the coreutils
package we can use the following command:
sudo dnf remove coreutils
coreutils Package Contents on CentOS 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/00
/usr/lib/.build-id/00/dddec081c9d8bb8eeaffc8fc8d83e7adbffea8
/usr/lib/.build-id/04
/usr/lib/.build-id/04/5f55a0d2560b4efd2cf12e27577f217172f9f7
/usr/lib/.build-id/05
/usr/lib/.build-id/05/6dda3f1b77919163a7de5563a2b9d9d245554c
/usr/lib/.build-id/05/f7dc22b926f3417b2975db4270d975c2aa7e1d
/usr/lib/.build-id/09
/usr/lib/.build-id/09/216f2b9fb60188dc4db6e13424905ca45ff490
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/0f79dd6ecef97977a997bfb6ceb1a91d2f62c0
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/82eefbec4995130beff5fa041587510f6dced9
/usr/lib/.build-id/18
/usr/lib/.build-id/18/08afb4240aa4e6bd90563814e276a7845566d7
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/0ad32156f855414303e7cb81009ed89d857cc0
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/b41adc277d05e7542eb048dbd431b5d093f985
/usr/lib/.build-id/24
/usr/lib/.build-id/24/def970e3f516ce3831bef30f86c09b670bbc76
/usr/lib/.build-id/26
/usr/lib/.build-id/26/b1d82ecba8827b22a608cd476d12f48d52c41a
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/808683507a99cd726b55711f0d60061a6a5dce
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/61ea2491125a92376da1af8a5a42fa1fdfe114
/usr/lib/.build-id/2b/6dbb381869b1995f0d8707ae95fb3dbdacc08c
/usr/lib/.build-id/31
/usr/lib/.build-id/31/5f78b2d2a69026794a568cf02730b7b936fac1
/usr/lib/.build-id/38
/usr/lib/.build-id/38/9b53a0567217ce91eca19c535daa091ced91da
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/19ce64bf5fe877cd34b9fb89cde6d2d0afd1b9
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/59fb80b3c83b1358d16b95fcfec3e9ef5bc01f
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/ce4a1205656aecc764a743ba2a419efe2fd324
/usr/lib/.build-id/42
/usr/lib/.build-id/42/efa5aea3ec70f440350f09f91812a7aa732377
/usr/lib/.build-id/45
/usr/lib/.build-id/45/03d268f34f73f2a631318c8f3d7e9564a55fef
/usr/lib/.build-id/49
/usr/lib/.build-id/49/f1d83a741cb7a6d85b3a809ae332c8024344e1
/usr/lib/.build-id/51
/usr/lib/.build-id/51/a92f8925070c98ce32c6df843367309f799e55
/usr/lib/.build-id/54
/usr/lib/.build-id/54/560697096751b3f9c61e48c7c0f33435c3ab1d
/usr/lib/.build-id/54/a2db52132c987526f0291ede8b14208a245ec4
/usr/lib/.build-id/54/cc1114d89b6ecd29fbab2729c7526dab7ed730
/usr/lib/.build-id/56
/usr/lib/.build-id/56/aa5c956be8c307cccd31cad7336867534c34b2
/usr/lib/.build-id/57
/usr/lib/.build-id/57/a6e29496255741bc56f1375e9c2405765460a4
/usr/lib/.build-id/59
/usr/lib/.build-id/59/f143a5e36e1df29088a8349e72d75c20ffe28f
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/5a31c94c6b13bc0ab8273316b6d5fe5d26adc8
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/97de2e2b9608a979093f9839c8e0ba5e04c9de
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/537a9d82487aa5aa0be3c5b58848378605bdc6
/usr/lib/.build-id/5c/bc341af44da00b4bd94e9a5f3188b48d7414e5
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/161c6c4e145a219d9a74cc5b67121f36ddad57
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/983af9fbdf93c97136549b2aa6b5a583e6d440
/usr/lib/.build-id/5f/b423aa3d482845f5969a3260f1bf8775fce8f6
/usr/lib/.build-id/60
/usr/lib/.build-id/60/f5b3bb96fdb25ac48dfcf00ec3dfbf7c770876
/usr/lib/.build-id/64
/usr/lib/.build-id/64/50490fb3360d4fdce086cf0a30f39a637f075f
/usr/lib/.build-id/68
/usr/lib/.build-id/68/0fe55b479b8a5605738e624cc4fc8fe9709a5f
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/3a95f0802a06b8ad25ba4f5f4dad7f0cc992f7
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/bead2b5cb2df82e7ed15170894d662b92fe52e
/usr/lib/.build-id/72
/usr/lib/.build-id/72/79a54b401a985a89dfcbe285e3eca21425a609
/usr/lib/.build-id/73
/usr/lib/.build-id/73/01dec05ec51878f4f02266e74ae7a629fcac5f
/usr/lib/.build-id/75
/usr/lib/.build-id/75/3a8c10c8aea127c7a8a4eb59b14246415eb9b2
/usr/lib/.build-id/76
/usr/lib/.build-id/76/29ea66d6fc6e1ce43994aba1f68454ab8ab600
/usr/lib/.build-id/77
/usr/lib/.build-id/77/e64c2c26574bad57af4ef8ff308f8dc0e19246
/usr/lib/.build-id/78
/usr/lib/.build-id/78/ca0273c53a0d07e67072607311609f7a7f5c5b
/usr/lib/.build-id/79
/usr/lib/.build-id/79/e452168f135bf20968b39b633235102e82f069
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/c1696aa1f46256a5d98d235de272099c6d9e6a
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/722bbe0cc3358ef34265fa060e92bde2d4b77d
/usr/lib/.build-id/84
/usr/lib/.build-id/84/949f86b8bfaa9cf9bfdd1057fb22de5a682abd
/usr/lib/.build-id/87
/usr/lib/.build-id/87/8090bda9116ec8d68165275148dfd2182a0661
/usr/lib/.build-id/88
/usr/lib/.build-id/88/4c3e5060ade9a37d50e3c768733e404a180270
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/5bd1406bbd7e62e1e344f2b8a784a8dc5a2696
/usr/lib/.build-id/91
/usr/lib/.build-id/91/c05935d897bde1e42066eee6e4ad592a5fad39
/usr/lib/.build-id/93
/usr/lib/.build-id/93/3b2bf4bff3e051f7b6da2b91e8bdffbb0677d7
/usr/lib/.build-id/93/dd00dbc88de48a2ab39bcd9618b13cd9247e80
/usr/lib/.build-id/94
/usr/lib/.build-id/94/193b915d03d2bc610acf0340f2d07bf1565120
/usr/lib/.build-id/94/47071cb1d5c471c586265be37f8f639dc9328c
/usr/lib/.build-id/96
/usr/lib/.build-id/96/0849c9d972b64680ca0e9769a79edf7aa27a32
/usr/lib/.build-id/96/6c4c2cb10295f51f048c052ee44cf7c3455ddb
/usr/lib/.build-id/98
/usr/lib/.build-id/98/84a2dda5526f509a3ba4450fc92a14ff60caed
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/238bc61191c0da601316433634c548351b6252
/usr/lib/.build-id/9a/e9b1e080ffda88fc1ceb7a8dd80b8a63752e77
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/ef864c2d4b68319c74beb87cd82881c0c7ed94
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/5b9fce76b0df8711f02af2765b1395995a8a96
/usr/lib/.build-id/9e/be242eb7a267fdb59e62ff0bf155d80c9252aa
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/2918b7aa54e813d841df479a4b4541902d4786
/usr/lib/.build-id/a4/d375b121878e172f51adeda7eb1d98d5a50947
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/160133b706cfd217956f1f0c9ab680a04213bf
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/c0c494a8bb5d6d4693ea8d1b78f339d7a2fa07
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/41cfb653020240df0bb6c68ac5f93a7e380038
/usr/lib/.build-id/ad/6a17994c2cea635d63b46269b0587f2718c2f4
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/468dd7c140dcf58d2db2480727a8810e4a9208
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/441861e2142a64b20a078d1739fb90288c3ffd
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/2020088d3c425234a931365b7f33744c890d76
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/832e022ab7c7aa228002b963f792db2eee7bf3
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/b49607b0c16de7cad2fe4ac4d3a167d330161b
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/2906dda40a61764a3d10b96bc891bd89293f42
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/b67f09340453980b3cc37268632e1c72140af9
/usr/lib/.build-id/be
/usr/lib/.build-id/be/48d275f519d65998e43a7387d80e3d7e442548
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/2301fa6563df6c94f87946b0f79b9ea59c9dd4
/usr/lib/.build-id/c2/f62b065d0f4b56f5392cd3e393a74d3ec5824b
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/a2ede0dbb2b90d88c04873d9b40443ea6d0abd
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/c31dd79b3af07cb934b81f3b7aa499375114a0
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/d527538380520d1de06a192b57d044e3435f02
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/8e5e0717d7fef52c2d53ff096fb2847a4a601f
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/5261d84b90944c8cdf072675f14bfeb8ed0662
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/5494b22b1b85f95baa7e4b02a1a262cd0964ed
/usr/lib/.build-id/df
/usr/lib/.build-id/df/4978c574edba3d24081cec57a5b09471b25e66
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/83cacbae3411daf8227147a182e613963238dd
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/299ab3acb5075b173a5e0d853393fdaebc3f2c
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/c2cea54a7038dbc88531e58feb8903fa41640f
/usr/lib/.build-id/e5/da61adee1835a63f27e58eecef35071f4efb4d
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/5cdb286604d25cb9f8dcc91f959011d0a72c24
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/144985745e40a463e7b133783c256abd8c0af8
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/07cab5815e1066e5c35f047417a7d5ad212126
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/e4e05f2831a34a18f9ef0e96a18b4e4528aa23
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/004acf8d5dee95af7dc5f7b26ffe72d79da0cd
/usr/lib/.build-id/ef/0a787ba94b92d1d3f0fcede50313c162bfe124
/usr/lib/.build-id/ef/ce5aed4afa675fb88a047b5f796ed172dd8276
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/214ef2197eef380d9b3ed7540839e4744d6925
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/0cd4d9febb3fa46e1232f69d7e372858a27419
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/5717528b34e4c9a6701dcd69463a712fb0561f
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/c5975731ca966279006ade0d426e3e1844ff5a
/usr/libexec/coreutils
/usr/libexec/coreutils/libstdbuf.so
/usr/sbin/chroot
References
Summary
In this tutorial we learn how to install coreutils
on CentOS 8 using yum and dnf.