How To Install ptlib on CentOS 7

In this tutorial we learn how to install ptlib on CentOS 7. ptlib is Portable Tools Library

Introduction

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

What is ptlib

PTLib (Portable Tools Library) is a moderately large class library that has it’s genesis many years ago as PWLib (portable Windows Library), a method to product applications to run on both Microsoft Windows and Unix systems. It has also been ported to other systems such as Mac OSX, VxWorks and other embedded systems. It is supplied mainly to support the OPAL project, but that shouldn’t stop you from using it in whatever project you have in mind if you so desire. PTLib (Portable Tools Library) is a moderately large class library that has it’s genesis many years ago as PWLib (portable Windows Library), a method to product applications to run on both Microsoft Windows and Unix systems. It has also been ported to other systems such as Mac OSX, VxWorks and other embedded systems. It is supplied mainly to support the OPAL project, but that shouldn’t stop you from using it in whatever project you have in mind if you so desire.

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

Install ptlib on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install ptlib

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

sudo dnf -y install ptlib

How To Uninstall ptlib on CentOS 7

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

sudo dnf remove ptlib

References

Summary

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