How To Install mtree-netbsd on Kali Linux
Introduction
In this tutorial we learn how to install mtree-netbsd
on Kali Linux.
What is mtree-netbsd
mtree-netbsd is:
The mtree utility compares a file hierarchy against a specification, creates a specification for a file hierarchy, or modifies a specification. This specification can be controlled by the user, but typically includes file/directory/symlink names, ownership information, permission bits, and so forth. It may optionally also include various hashes, such as SHA-256 or MD5.
This mtree utility can understand its own files, as well as those generated by the FreeBSD mtree (in Debian as fmtree in freebsd-buildutils and freebsd-glue) and bsdtar/libarchive.
There are three methods to install mtree-netbsd
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install mtree-netbsd Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install mtree-netbsd
using apt-get
by running the following command:
sudo apt-get -y install mtree-netbsd
Install mtree-netbsd Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install mtree-netbsd
using apt
by running the following command:
sudo apt -y install mtree-netbsd
Install mtree-netbsd Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install mtree-netbsd
using aptitude
by running the following command:
sudo aptitude -y install mtree-netbsd
How To Uninstall mtree-netbsd on Kali Linux
To uninstall only the mtree-netbsd
package we can use the following command:
sudo apt-get remove mtree-netbsd
Uninstall mtree-netbsd And Its Dependencies
To uninstall mtree-netbsd
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove mtree-netbsd
Remove mtree-netbsd Configurations and Data
To remove mtree-netbsd
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge mtree-netbsd
Remove mtree-netbsd configuration, data, and all of its dependencies
We can use the following command to remove mtree-netbsd
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge mtree-netbsd
Dependencies
mtree-netbsd have the following dependencies:
References
Summary
In this tutorial we learn how to install mtree-netbsd
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.