How To Install coreutils on Debian 11
Introduction
In this tutorial we learn how to install coreutils
on Debian 11.
What is coreutils
coreutils is:
This package contains the basic file, shell and text manipulation utilities which are expected to exist on every operating system.
Specifically, this package includes: arch base64 basename cat chcon chgrp chmod chown chroot cksum comm cp csplit cut date dd df dir dircolors dirname du echo env expand expr factor false flock fmt fold groups head hostid id install join link ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup nproc numfmt od paste pathchk pinky pr printenv printf ptx pwd readlink realpath rm rmdir runcon sha*sum seq shred sleep sort split stat stty sum sync tac tail tee test timeout touch tr true truncate tsort tty uname unexpand uniq unlink users vdir wc who whoami yes
There are three methods to install coreutils
on Debian 11. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install coreutils Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install coreutils
using apt-get
by running the following command:
sudo apt-get -y install coreutils
Install coreutils Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install coreutils
using apt
by running the following command:
sudo apt -y install coreutils
Install coreutils Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install coreutils
using aptitude
by running the following command:
sudo aptitude -y install coreutils
How To Uninstall coreutils on Debian 11
To uninstall only the coreutils
package we can use the following command:
sudo apt-get remove coreutils
Uninstall coreutils And Its Dependencies
To uninstall coreutils
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove coreutils
Remove coreutils Configurations and Data
To remove coreutils
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge coreutils
Remove coreutils configuration, data, and all of its dependencies
We can use the following command to remove coreutils
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge coreutils
Dependencies
coreutils have the following dependencies:
References
Summary
In this tutorial we learn how to install coreutils
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.