How To Install libopencryptoki-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libopencryptoki-dev on Ubuntu 20.04.
What is libopencryptoki-dev
libopencryptoki-dev is:
openCryptoki is a PKCS#11 Cryptographic Token Interface Standard implementation. It includes drivers and libraries to enable IBM cryptographic hardware such as Trusted Computing Platform (TPM) cryptographic devices as well as a software token for testing.
This package contains the development files.
Package: libopencryptoki-dev Architecture: amd64 Version: 3.13.0+dfsg-0ubuntu5 Multi-Arch: same Priority: optional Section: universe/libdevel Source: opencryptoki Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Paulo Vital [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 119 Depends: libopencryptoki0 (= 3.13.0+dfsg-0ubuntu5) Filename: pool/universe/o/opencryptoki/libopencryptoki-dev_3.13.0+dfsg-0ubuntu5_amd64.deb Size: 19128 MD5sum: 3b2a95e5017055d1958805ac73db5927 SHA1: 3dd59993af98fdb10aba69b45f3e40c8afc9f7e3 SHA256: e72378536ba44310cd96e57257574656d9540b1fbcb64424b978dada18e4b44a Homepage: https://github.com/opencryptoki/opencryptoki Description-en: PKCS#11 implementation (development) openCryptoki is a PKCS#11 Cryptographic Token Interface Standard implementation. It includes drivers and libraries to enable IBM cryptographic hardware such as Trusted Computing Platform (TPM) cryptographic devices as well as a software token for testing.
This package contains the development files.
There are three methods to install libopencryptoki-dev on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install libopencryptoki-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 libopencryptoki-dev using apt-get by running the following command:
sudo apt-get -y install libopencryptoki-dev
Install libopencryptoki-dev Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libopencryptoki-dev using apt by running the following command:
sudo apt -y install libopencryptoki-dev
Install libopencryptoki-dev 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 Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install libopencryptoki-dev using aptitude by running the following command:
sudo aptitude -y install libopencryptoki-dev
How To Uninstall libopencryptoki-dev on Ubuntu 20.04
To uninstall only the libopencryptoki-dev package we can use the following command:
sudo apt-get remove libopencryptoki-dev
Uninstall libopencryptoki-dev And Its Dependencies
To uninstall libopencryptoki-dev and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libopencryptoki-dev
Remove libopencryptoki-dev Configurations and Data
To remove libopencryptoki-dev configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libopencryptoki-dev
Remove libopencryptoki-dev configuration, data, and all of its dependencies
We can use the following command to remove libopencryptoki-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libopencryptoki-dev
References
Summary
In this tutorial we learn how to install libopencryptoki-dev package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.