How To Install iodbc on Ubuntu 20.04
Introduction
In this tutorial we learn how to install iodbc
on Ubuntu 20.04.
What is iodbc
iodbc is:
The iODBC (intrinsic Open Database Connectivity) driver manager is compatible with the ODBC 2.x and 3.x specification and performs all the jobs of a ODBC driver manager (i.e. driver loading, parameters and function sequence checking, driver’s function invoking, etc). Any ODBC driver working with ODBC 2.0 and 3.x driver manager will also work with iODBC driver manager and vice versa.
Applications (using ODBC function calls) linked with iODBC driver manager will be able to simultaneously access different types of data sources within one process through suitable iODBC drivers.
This package contains the configuration binaries.
There are three methods to install iodbc
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install iodbc Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install iodbc
using apt-get
by running the following command:
sudo apt-get -y install iodbc
Install iodbc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install iodbc
using apt
by running the following command:
sudo apt -y install iodbc
Install iodbc 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install iodbc
using aptitude
by running the following command:
sudo aptitude -y install iodbc
How To Uninstall iodbc on Ubuntu 20.04
To uninstall only the iodbc
package we can use the following command:
sudo apt-get remove iodbc
Uninstall iodbc And Its Dependencies
To uninstall iodbc
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove iodbc
Remove iodbc Configurations and Data
To remove iodbc
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge iodbc
Remove iodbc configuration, data, and all of its dependencies
We can use the following command to remove iodbc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge iodbc
References
Summary
In this tutorial we learn how to install iodbc
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.