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


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 focal InRelease
Hit:2 focal InRelease
Get:3 focal-security InRelease [114 kB]
Get:4 focal-updates InRelease [114 kB]
Get:5 stable InRelease [1,811 B]
Get:6 stable/main amd64 Packages [1,075 B]
Get:7 focal-backports InRelease [108 kB]
Get:8 focal-updates/main amd64 Packages [2,072 kB]
Get:9 focal-security/main i386 Packages [485 kB]
Get:10 focal-updates/main i386 Packages [712 kB]
Get:11 focal-security/main amd64 Packages [1,705 kB]
Get:12 focal-updates/main amd64 DEP-11 Metadata [277 kB]
Get:13 focal-updates/main amd64 c-n-f Metadata [15.8 kB]
Get:14 focal-updates/universe amd64 DEP-11 Metadata [391 kB]
Get:15 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:
The following NEW packages will be installed:
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 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

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

Leave a Comment