How To Install libtool on CentOS 7

In this tutorial we learn how to install libtool on CentOS 7. libtool is The GNU Portable Library Tool

Introduction

In this tutorial we learn how to install libtool on CentOS 7.

What is libtool

GNU Libtool is a set of shell scripts which automatically configure UNIX and UNIX-like systems to generically build shared libraries. Libtool provides a consistent, portable interface which simplifies the process of using shared libraries. If you are developing programs which will use shared libraries, but do not use the rest of the GNU Autotools (such as GNU Autoconf and GNU Automake), you should install the libtool package. The libtool package also includes all files needed to integrate the GNU Portable Library Tool (libtool) and the GNU Libtool Dynamic Module Loader (ltdl) into a package built using the GNU Autotools (including GNU Autoconf and GNU Automake).

We can use yum or dnf to install libtool on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libtool.

Install libtool on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install libtool using yum by running the following command:

sudo yum -y install libtool

Install libtool on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install libtool using dnf by running the following command:

sudo dnf -y install libtool

How To Uninstall libtool on CentOS 7

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

sudo dnf remove libtool

References

Summary

In this tutorial we learn how to install libtool on CentOS 7 using yum and dnf.