How To Install libdlib18 on Debian 9

In this tutorial we learn how to install libdlib18 on Debian 9. libdlib18 is C++ toolkit for machine learning and computer vision - library

Introduction

In this tutorial we learn how to install libdlib18 on Debian 9.

What is libdlib18

libdlib18 is:

Dlib is a general purpose cross-platform open source software library written in the C++ programming language. It now contains software components for dealing with networking, threads, graphical interfaces, complex data structures, linear algebra, statistical machine learning, image processing, data mining, XML and text parsing, numerical optimization, Bayesian networks, and numerous other tasks.

There are three methods to install libdlib18 on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libdlib18 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libdlib18 using apt-get by running the following command:

sudo apt-get -y install libdlib18

Install libdlib18 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libdlib18 using apt by running the following command:

sudo apt -y install libdlib18

Install libdlib18 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libdlib18 using aptitude by running the following command:

sudo aptitude -y install libdlib18

How To Uninstall libdlib18 on Debian 9

To uninstall only the libdlib18 package we can use the following command:

sudo apt-get remove libdlib18

Uninstall libdlib18 And Its Dependencies

To uninstall libdlib18 and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libdlib18

Remove libdlib18 Configurations and Data

To remove libdlib18 configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libdlib18

Remove libdlib18 configuration, data, and all of its dependencies

We can use the following command to remove libdlib18 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libdlib18

Dependencies

libdlib18 have the following dependencies:

References

Summary

In this tutorial we learn how to install libdlib18 package on Debian 9 using different package management tools: apt, apt-get and aptitude.