How To Install libct4 on Debian 12

Learn how to install libct4 on Debian 12 with this tutorial. libct4 is libraries for connecting to MS SQL and Sybase SQL servers

Introduction

In this tutorial we learn how to install libct4 on Debian 12.

What is libct4

libct4 is:

FreeTDS is an implementation of the Tabular DataStream protocol, used for connecting to MS SQL and Sybase servers over TCP/IP.

This package includes the shared libraries for the Sybase CT-Lib API. You will need this if you plan to connect to MS SQL or Sybase servers, or use the PHP sybase or Perl DBD::Sybase extensions.

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

Install libct4 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libct4

Install libct4 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libct4

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

sudo aptitude -y install libct4

How To Uninstall libct4 on Debian 12

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

sudo apt-get remove libct4

Uninstall libct4 And Its Dependencies

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

sudo apt-get -y autoremove libct4

Remove libct4 Configurations and Data

To remove libct4 configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libct4

Remove libct4 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libct4

Dependencies

libct4 have the following dependencies:

References

Summary

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