How To Install libtss2-dev on Kali Linux
Introduction
In this tutorial we learn how to install libtss2-dev
on Kali Linux.
What is libtss2-dev
libtss2-dev is:
TPM2.0 TSS (Software Stack) consists of API layers provided to support TPM 2.0 chips. It is made out of three layers:
- Enhanced System API (ESAPI)
- System API (SAPI), which implements the system layer API;
- Marshaling/Unmarshaling (MU)
- TPM Command Transmission Interface (TCTI), which is used by SAPI to allow communication with the TAB/RM layer;
This package contains development files for use when writing applications that need access to TPM chips.
There are three methods to install libtss2-dev
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 libtss2-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libtss2-dev
using apt-get
by running the following command:
sudo apt-get -y install libtss2-dev
Install libtss2-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libtss2-dev
using apt
by running the following command:
sudo apt -y install libtss2-dev
Install libtss2-dev 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 libtss2-dev
using aptitude
by running the following command:
sudo aptitude -y install libtss2-dev
How To Uninstall libtss2-dev on Kali Linux
To uninstall only the libtss2-dev
package we can use the following command:
sudo apt-get remove libtss2-dev
Uninstall libtss2-dev And Its Dependencies
To uninstall libtss2-dev
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libtss2-dev
Remove libtss2-dev Configurations and Data
To remove libtss2-dev
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libtss2-dev
Remove libtss2-dev configuration, data, and all of its dependencies
We can use the following command to remove libtss2-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libtss2-dev
Dependencies
libtss2-dev have the following dependencies:
- libgcrypt20-dev
- libtss2-esys-3.0.2-0
- libtss2-fapi1
- libtss2-mu0
- libtss2-rc0
- libtss2-sys1
- libtss2-tcti-cmd0
- libtss2-tcti-device0
- libtss2-tcti-mssim0
- libtss2-tcti-swtpm0
- libtss2-tctildr0
References
Summary
In this tutorial we learn how to install libtss2-dev
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.