How to Uninstall and Install freetds-dev Ubuntu 22.04

Updated: August 30, 2022

FreeTDS is an implementation of the Tabular DataStream protocol, used for connecting to MS SQL and Sybase servers over TCP/IP. In this guide, I will show you how to install freetds-dev on Ubuntu 22.04.

Prerequisites

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install freetds-dev on Ubuntu 22.04

Install freetds-dev Ubuntu 22.04

freetds-dev is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install freetds-dev using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install freetds-dev on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install freetds-dev Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt-get -y install freetds-dev

Install freetds-dev using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt-get install aptitude

After that, you can now install freetds-dev, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install freetds-dev Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude -y install freetds-dev

Uninstall freetds-dev on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just freetds-dev.

You can uninstall freetds-dev Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove freetds-dev

To uninstall freetds-dev and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge freetds-dev

Ending

In this tutorial, I showed you ways to install freetds-dev on Ubuntu 22.04 and some ways to uninstall freetds-dev too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.