Cyberithub

How to Install libssl-dev package on Ubuntu 20.04 LTS (Focal Fossa)

Advertisements

In this article, we will see how to install libssl-dev package on Ubuntu 20.04 LTS (Focal Fossa). libssl-dev is part of the OpenSSL project's implementation of the SSL and TLS cryptographic protocols for secure communication over the Internet. It contains development libraries, header files, and man pages for libssl and libcrypto. Most of the time you will find this package already installed in your System but in case if it is not installed then you can use below steps to install this package. Check more about this package on Debian official website.

How to Install libssl-dev package on Ubuntu 20.04 LTS (Focal Fossa)

How to Install libssl-dev package on Ubuntu 20.04 LTS (Focal Fossa)

Also Read: How to Install Watson CLI in Linux Using 7 Easy Steps

Step 1: Prerequisites

a) You should have a running Ubuntu 20.04 LTS Server.

b) You should have sudo or root access to run privileged commands.

c) You should have apt or apt-get utility available in your System.

 

Step 2: Update Your Server

First you need to update your System cache with all the latest available package versions from Ubuntu repo by using sudo apt update command as shown below.

cyberithub@ubuntu:~$ sudo apt update
Hit:1 https://download.docker.com/linux/ubuntu focal InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu focal InRelease
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 https://dl.google.com/linux/chrome/deb stable InRelease [1,811 B]
Get:6 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,075 B]
Get:7 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,072 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [485 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [712 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,705 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [277 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [15.8 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [391 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]
........................................

 

Step 3: Install libssl-dev Package

Then install the package using sudo apt install libssl-dev command as shown below. Below command will download and install the package along with all its dependencies.

cyberithub@ubuntu:~$ sudo apt install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libssl-doc
The following NEW packages will be installed:
libssl-dev
0 upgraded, 1 newly installed, 0 to remove and 42 not upgraded.
Need to get 1,584 kB of archives.
After this operation, 8,009 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl-dev amd64 1.1.1f-1ubuntu2.16 [1,584 kB]
Fetched 1,584 kB in 1s (1,072 kB/s)
Selecting previously unselected package libssl-dev:amd64.
(Reading database ... 210582 files and directories currently installed.)
Preparing to unpack .../libssl-dev_1.1.1f-1ubuntu2.16_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1f-1ubuntu2.16) ...
Setting up libssl-dev:amd64 (1.1.1f-1ubuntu2.16) ...

 

Step 4: Verify the Package

Once the package is successfully installed, you can verify the installed files by using dpkg -L libssl-dev command as shown below.

cyberithub@ubuntu:~$ dpkg -L libssl-dev
/.
/usr
/usr/include
/usr/include/openssl
/usr/include/openssl/aes.h
/usr/include/openssl/asn1.h
/usr/include/openssl/asn1_mac.h
/usr/include/openssl/asn1err.h
/usr/include/openssl/asn1t.h
/usr/include/openssl/async.h
/usr/include/openssl/asyncerr.h
/usr/include/openssl/bio.h
/usr/include/openssl/bioerr.h
/usr/include/openssl/blowfish.h
/usr/include/openssl/bn.h
/usr/include/openssl/bnerr.h
/usr/include/openssl/buffer.h
/usr/include/openssl/buffererr.h
/usr/include/openssl/camellia.h
/usr/include/openssl/cast.h
/usr/include/openssl/cmac.h
/usr/include/openssl/cms.h
/usr/include/openssl/cmserr.h
/usr/include/openssl/comp.h
...................................

1 thought on “How to Install libssl-dev package on Ubuntu 20.04 LTS (Focal Fossa)”

Leave a Comment