How To Install openssl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install openssl
on Ubuntu 20.04.
What is openssl
openssl is:
This package is part of the OpenSSL project’s implementation of the SSL and TLS cryptographic protocols for secure communication over the Internet.
It contains the general-purpose command line binary /usr/bin/openssl, useful for cryptographic operations such as:
- creating RSA, DH, and DSA key parameters;
- creating X.509 certificates, CSRs, and CRLs;
- calculating message digests;
- encrypting and decrypting with ciphers;
- testing SSL/TLS clients and servers;
- handling S/MIME signed or encrypted mail. Task: minimal
Package: openssl Architecture: amd64 Version: 1.1.1f-1ubuntu2.3 Multi-Arch: foreign Priority: important Section: utils Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian OpenSSL Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1257 Depends: libc6 (>= 2.15), libssl1.1 (>= 1.1.1) Suggests: ca-certificates Filename: pool/main/o/openssl/openssl_1.1.1f-1ubuntu2.3_amd64.deb Size: 620288 MD5sum: 721521cc77d5b5c2c64d5838231c03e4 SHA1: dbf4d99e8082291b353c780b936683ced6d8c023 SHA256: 6b7c24aa4209c11a2dfb50e1ad85d5f5dd5aa638e731de07fc50e22a35320a43 SHA512: 5d3d186ff1b6bef88ebc8753c8664295407603770fa74a94e898eb823130c5d6be565319df4f01a80934482840673f8733d0e812dc83b9d4725414a5db70e4f6 Homepage: https://www.openssl.org/ Description-en: Secure Sockets Layer toolkit - cryptographic utility This package is part of the OpenSSL project’s implementation of the SSL and TLS cryptographic protocols for secure communication over the Internet.
It contains the general-purpose command line binary /usr/bin/openssl, useful for cryptographic operations such as:
- creating RSA, DH, and DSA key parameters;
- creating X.509 certificates, CSRs, and CRLs;
- calculating message digests;
- encrypting and decrypting with ciphers;
- testing SSL/TLS clients and servers;
- handling S/MIME signed or encrypted mail. Task: minimal
Package: openssl Architecture: amd64 Version: 1.1.1f-1ubuntu2 Multi-Arch: foreign Priority: important Section: utils Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian OpenSSL Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1257 Depends: libc6 (>= 2.15), libssl1.1 (>= 1.1.1) Suggests: ca-certificates Filename: pool/main/o/openssl/openssl_1.1.1f-1ubuntu2_amd64.deb Size: 620552 MD5sum: cea7e3cb5493d73d17e9d81024cb5570 SHA1: 45d2291c8420afd2d7e2b08d1c15f8786b6584b1 SHA256: 0b47fac737cfe18bcdd20773bc4a52485e21d18d144126c535d2c58ff58889bb Homepage: https://www.openssl.org/ Description-en: Secure Sockets Layer toolkit - cryptographic utility This package is part of the OpenSSL project’s implementation of the SSL and TLS cryptographic protocols for secure communication over the Internet.
It contains the general-purpose command line binary /usr/bin/openssl, useful for cryptographic operations such as:
- creating RSA, DH, and DSA key parameters;
- creating X.509 certificates, CSRs, and CRLs;
- calculating message digests;
- encrypting and decrypting with ciphers;
- testing SSL/TLS clients and servers;
- handling S/MIME signed or encrypted mail. Task: minimal
There are three methods to install openssl
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 openssl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install openssl
using apt-get
by running the following command:
sudo apt-get -y install openssl
Install openssl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install openssl
using apt
by running the following command:
sudo apt -y install openssl
Install openssl 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 openssl
using aptitude
by running the following command:
sudo aptitude -y install openssl
How To Uninstall openssl on Ubuntu 20.04
To uninstall only the openssl
package we can use the following command:
sudo apt-get remove openssl
Uninstall openssl And Its Dependencies
To uninstall openssl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove openssl
Remove openssl Configurations and Data
To remove openssl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge openssl
Remove openssl configuration, data, and all of its dependencies
We can use the following command to remove openssl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge openssl
References
Summary
In this tutorial we learn how to install openssl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.