How To Install mtools on Debian 11
Introduction
In this tutorial we learn how to install mtools
on Debian 11.
What is mtools
mtools is:
Mtools is a collection of utilities to access MS-DOS disks from Unix without mounting them. It supports Win'95 style long file names, OS/2 Xdf disks, ZIP/JAZ disks and 2m disks (store up to 1992kB on a high density 3 1/2 disk).
Also included in this package are commands to eject and manipulate the write/password protection control of Zip disks.
There are three methods to install mtools
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 mtools Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install mtools
using apt-get
by running the following command:
sudo apt-get -y install mtools
Install mtools Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install mtools
using apt
by running the following command:
sudo apt -y install mtools
Install mtools 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 mtools
using aptitude
by running the following command:
sudo aptitude -y install mtools
How To Uninstall mtools on Debian 11
To uninstall only the mtools
package we can use the following command:
sudo apt-get remove mtools
Uninstall mtools And Its Dependencies
To uninstall mtools
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove mtools
Remove mtools Configurations and Data
To remove mtools
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge mtools
Remove mtools configuration, data, and all of its dependencies
We can use the following command to remove mtools
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge mtools
Dependencies
mtools have the following dependencies:
References
Summary
In this tutorial we learn how to install mtools
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.