Uninstall older unixODBC completely and install 2.3.2 unixODBC in redhat 6.3

Viewed 9789

I am trying to install msodbcsql v13 in redhat 6.3. It shows dependency error for unixODBC(64 bit) >= 2.3.1 needs to be installed before installing msodbcsql.

I tried running below command,

 odbcinst -j

It shows unixODBC 2.3.2 is installed. Also i tried to some other way,

yum provides /usr/lib64/odbcinst.so.2.0.0

The above command shows, ODBC version 2.2 is installed. Also if i run yum local install, it shows unixODBC 32 bit version available in machine.

To remove unixODBC, i tried the below commands. But not works out.

yum remove unixODBC
yum erase unixODBC
rpm -e unixODBC*
rpm rpm -qa | grep unixODBC

I want to remove all unixODBC available in the machine. And reinstall the actual version which we required.

2 Answers

To remove all unixODBC related packages, run:

sudo yum remove unixODBC*

To install newer version of unixODBC, try to install unixODBC-utf16 package.

Here are the suggested commands:

curl -s https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/msprod.repo
sudo yum update
sudo yum info unixODBC*
sudo yum install unixODBC-utf16

See also: Install the SQL Server command-line tools on Linux.


If above won't help, check: How to install Microsoft Drivers for PHP for SQL Server on Amazon Linux AMI.

Related