How To Install mmc-utils on Debian 9
Introduction
In this tutorial we learn how to install mmc-utils
on Debian 9.
What is mmc-utils
mmc-utils is:
mmc-utils is a tool that supports the MMC device development of linux kernel.
The mmc-utils tools can do the following:
- Print and parse extcsd data.
- Determine the eMMC writeprotect status.
- Set the eMMC writeprotect status.
- Set the eMMC data sector size to 4KB by disabling emulation.
- Create general purpose partition.
- Enable the enhanced user area.
- Enable write reliability per partition.
- Print the response to STATUS_SEND (CMD13).
- Enable the boot partition.
- Set Boot Bus Conditions.
- Enable the eMMC BKOPS feature.
- Permanently enable the eMMC H/W Reset feature.
- Permanently disable the eMMC H/W Reset feature.
- Send Sanitize command.
- Program authentication key for the device.
- Counter value for the rpmb device will be read to stdout.
- Read from rpmb device to output.
- Write to rpmb device from data file.
- Enable the eMMC cache feature.
- Disable the eMMC cache feature.
- Print and parse CID data.
- Print and parse CSD data.
- Print and parse SCR data.
There are three methods to install mmc-utils
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install mmc-utils Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install mmc-utils
using apt-get
by running the following command:
sudo apt-get -y install mmc-utils
Install mmc-utils Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install mmc-utils
using apt
by running the following command:
sudo apt -y install mmc-utils
Install mmc-utils 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 mmc-utils
using aptitude
by running the following command:
sudo aptitude -y install mmc-utils
How To Uninstall mmc-utils on Debian 9
To uninstall only the mmc-utils
package we can use the following command:
sudo apt-get remove mmc-utils
Uninstall mmc-utils And Its Dependencies
To uninstall mmc-utils
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove mmc-utils
Remove mmc-utils Configurations and Data
To remove mmc-utils
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge mmc-utils
Remove mmc-utils configuration, data, and all of its dependencies
We can use the following command to remove mmc-utils
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge mmc-utils
Dependencies
mmc-utils have the following dependencies:
References
Summary
In this tutorial we learn how to install mmc-utils
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.