How To Install libltdl7 on Debian 9

In this tutorial we learn how to install libltdl7 on Debian 9. libltdl7 is System independent dlopen wrapper for GNU libtool

Introduction

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

What is libltdl7

libltdl7 is:

This package contains the run-time libltdl library.

A small library that aims at hiding the various difficulties of dlopening libraries from programmers. It is a system independent dlopen wrapper for GNU libtool.

It supports the following dlopen interfaces:

  • dlopen (Solaris, Linux and various BSD flavors)
  • shl_load (HP-UX)
  • LoadLibrary (Win16 and Win32)
  • load_add_on (BeOS)
  • GNU DLD (emulates dynamic linking for static libraries)
  • libtool’s dlpreopen

There are three methods to install libltdl7 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 libltdl7 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libltdl7

Install libltdl7 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libltdl7

Install libltdl7 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 libltdl7 using aptitude by running the following command:

sudo aptitude -y install libltdl7

How To Uninstall libltdl7 on Debian 9

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

sudo apt-get remove libltdl7

Uninstall libltdl7 And Its Dependencies

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

sudo apt-get -y autoremove libltdl7

Remove libltdl7 Configurations and Data

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

sudo apt-get -y purge libltdl7

Remove libltdl7 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libltdl7

Dependencies

libltdl7 have the following dependencies:

References

Summary

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