How To Install rust-coreutils on Debian 12

Learn how to install rust-coreutils on Debian 12 with this tutorial. rust-coreutils is Universal coreutils utils, written in Rust

Introduction

In this tutorial we learn how to install rust-coreutils on Debian 12.

What is rust-coreutils

rust-coreutils is:

This packages replaces the GNU coreutils package written in C. It should be a drop-in replacement but:

  • Some options have NOT been implemented,
  • Might have important bugs,
  • Might be slower,
  • Output of the binaries might be slightly different.

It might break your system.

This is an EXPERIMENTAL package. It should not be used in production.

There are three methods to install rust-coreutils on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install rust-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 rust-coreutils using apt-get by running the following command:

sudo apt-get -y install rust-coreutils

Install rust-coreutils Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install rust-coreutils using apt by running the following command:

sudo apt -y install rust-coreutils

Install rust-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 rust-coreutils using aptitude by running the following command:

sudo aptitude -y install rust-coreutils

How To Uninstall rust-coreutils on Debian 12

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

sudo apt-get remove rust-coreutils

Uninstall rust-coreutils And Its Dependencies

To uninstall rust-coreutils and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove rust-coreutils

Remove rust-coreutils Configurations and Data

To remove rust-coreutils configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge rust-coreutils

Remove rust-coreutils configuration, data, and all of its dependencies

We can use the following command to remove rust-coreutils configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge rust-coreutils

Dependencies

rust-coreutils have the following dependencies:

References

Summary

In this tutorial we learn how to install rust-coreutils package on Debian 12 using different package management tools: apt, apt-get and aptitude.