How To Install freetds on CentOS 8

freetds is Implementation of the TDS (Tabular DataStream) protocol

Introduction

In this tutorial we learn how to install freetds on CentOS 8.

What is freetds

FreeTDS is a project to document and implement the TDS (Tabular DataStream) protocol. TDS is used by Sybase(TM) and Microsoft(TM) for client to database server communications. FreeTDS includes call level interfaces for DB-Lib, CT-Lib, and ODBC.

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

Install freetds on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install freetds

Install freetds on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install freetds

How To Uninstall freetds on CentOS 8

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

sudo dnf remove freetds

freetds Package Contents on CentOS 8

/usr/bin/bsqldb
/usr/bin/bsqlodbc
/usr/bin/datacopy
/usr/bin/defncopy
/usr/bin/fisql
/usr/bin/freebcp
/usr/bin/osql
/usr/bin/tdspool
/usr/bin/tsql
/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/cd55aa5dd57158a51e5bbe7522584ef0ca509d
/usr/lib/.build-id/35
/usr/lib/.build-id/35/b37364bac83797c982b08ff4c93d50d3964984
/usr/lib/.build-id/47
/usr/lib/.build-id/47/02add11d778300c062cf820a307de864f07e93
/usr/lib/.build-id/57
/usr/lib/.build-id/57/e443151716a28c83888cf5f3ad00f08295b418
/usr/lib/.build-id/67
/usr/lib/.build-id/67/565171c23cd270bb34a3ce8216646c43408fb1
/usr/lib/.build-id/70
/usr/lib/.build-id/70/233029049176fd21d4722f0bace9a4b29b9bfa
/usr/lib/.build-id/af
/usr/lib/.build-id/af/759802cd23d95453129205a679224c7d213622
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/61ecd03e2759384a6c66dbf1dbaff8b83382a4
/usr/share/doc/freetds
/usr/share/doc/freetds/AUTHORS
/usr/share/doc/freetds/BUGS
/usr/share/doc/freetds/COPYING
/usr/share/doc/freetds/NEWS
/usr/share/doc/freetds/README
/usr/share/doc/freetds/TODO
/usr/share/doc/freetds/images
/usr/share/doc/freetds/images/callouts
/usr/share/doc/freetds/images/callouts/1.gif
/usr/share/doc/freetds/images/callouts/10.gif
/usr/share/doc/freetds/images/callouts/2.gif
/usr/share/doc/freetds/images/callouts/3.gif
/usr/share/doc/freetds/images/callouts/4.gif
/usr/share/doc/freetds/images/callouts/5.gif
/usr/share/doc/freetds/images/callouts/6.gif
/usr/share/doc/freetds/images/callouts/7.gif
/usr/share/doc/freetds/images/callouts/8.gif
/usr/share/doc/freetds/images/callouts/9.gif
/usr/share/doc/freetds/images/caution.gif
/usr/share/doc/freetds/images/important.gif
/usr/share/doc/freetds/images/note.gif
/usr/share/doc/freetds/images/tip.gif
/usr/share/doc/freetds/images/warning.gif
/usr/share/doc/freetds/tds.html
/usr/share/doc/freetds/tds_ssl.html
/usr/share/doc/freetds/userguide
/usr/share/doc/freetds/userguide/about.htm
/usr/share/doc/freetds/userguide/aboutunicode.htm
/usr/share/doc/freetds/userguide/acknowledgments.htm
/usr/share/doc/freetds/userguide/advocacy.htm
/usr/share/doc/freetds/userguide/ambition.htm
/usr/share/doc/freetds/userguide/apireference.htm
/usr/share/doc/freetds/userguide/appendmode.htm
/usr/share/doc/freetds/userguide/askingforhelp.htm
/usr/share/doc/freetds/userguide/build.htm
/usr/share/doc/freetds/userguide/choosingtdsprotocol.htm
/usr/share/doc/freetds/userguide/config.htm
/usr/share/doc/freetds/userguide/configs.htm
/usr/share/doc/freetds/userguide/confirminstall.htm
/usr/share/doc/freetds/userguide/contrib.htm
/usr/share/doc/freetds/userguide/contributors.htm
/usr/share/doc/freetds/userguide/ctlib.api.summary.htm
/usr/share/doc/freetds/userguide/dblib.api.summary.htm
/usr/share/doc/freetds/userguide/domains.htm
/usr/share/doc/freetds/userguide/dsnless.htm
/usr/share/doc/freetds/userguide/envvar.htm
/usr/share/doc/freetds/userguide/freetdsconf.htm
/usr/share/doc/freetds/userguide/freetdshistory.htm
/usr/share/doc/freetds/userguide/gfdl-1.htm
/usr/share/doc/freetds/userguide/gfdl-10.htm
/usr/share/doc/freetds/userguide/gfdl-11.htm
/usr/share/doc/freetds/userguide/gfdl-2.htm
/usr/share/doc/freetds/userguide/gfdl-3.htm
/usr/share/doc/freetds/userguide/gfdl-4.htm
/usr/share/doc/freetds/userguide/gfdl-5.htm
/usr/share/doc/freetds/userguide/gfdl-6.htm
/usr/share/doc/freetds/userguide/gfdl-7.htm
/usr/share/doc/freetds/userguide/gfdl-8.htm
/usr/share/doc/freetds/userguide/gfdl-9.htm
/usr/share/doc/freetds/userguide/gfdl.htm
/usr/share/doc/freetds/userguide/help.htm
/usr/share/doc/freetds/userguide/index.htm
/usr/share/doc/freetds/userguide/index.html
/usr/share/doc/freetds/userguide/install.htm
/usr/share/doc/freetds/userguide/interfacesfile.htm
/usr/share/doc/freetds/userguide/interfacesformat.htm
/usr/share/doc/freetds/userguide/interfaceslocation.htm
/usr/share/doc/freetds/userguide/interfacespurpose.htm
/usr/share/doc/freetds/userguide/iso8859.htm
/usr/share/doc/freetds/userguide/isolatecause.htm
/usr/share/doc/freetds/userguide/kerberos.htm
/usr/share/doc/freetds/userguide/light.taper.htm
/usr/share/doc/freetds/userguide/linker.conclusion.htm
/usr/share/doc/freetds/userguide/linker.how.htm
/usr/share/doc/freetds/userguide/linker.library.check.htm
/usr/share/doc/freetds/userguide/locales.htm
/usr/share/doc/freetds/userguide/localization.htm
/usr/share/doc/freetds/userguide/logging.htm
/usr/share/doc/freetds/userguide/mailinglist.htm
/usr/share/doc/freetds/userguide/name.lookup.htm
/usr/share/doc/freetds/userguide/odbc.api.summary.htm
/usr/share/doc/freetds/userguide/odbcconnattr.htm
/usr/share/doc/freetds/userguide/odbcdiagnose.htm
/usr/share/doc/freetds/userguide/odbcinionly.htm
/usr/share/doc/freetds/userguide/odbcombo.htm
/usr/share/doc/freetds/userguide/osissues.htm
/usr/share/doc/freetds/userguide/packages.htm
/usr/share/doc/freetds/userguide/pagenodata.htm
/usr/share/doc/freetds/userguide/perl.htm
/usr/share/doc/freetds/userguide/php.htm
/usr/share/doc/freetds/userguide/portoverride.htm
/usr/share/doc/freetds/userguide/prepodbc.htm
/usr/share/doc/freetds/userguide/programming.htm
/usr/share/doc/freetds/userguide/projects.htm
/usr/share/doc/freetds/userguide/python.htm
/usr/share/doc/freetds/userguide/qt.htm
/usr/share/doc/freetds/userguide/rtl.define.library.htm
/usr/share/doc/freetds/userguide/rtl.htm
/usr/share/doc/freetds/userguide/samplecode.htm
/usr/share/doc/freetds/userguide/seemtooslow.htm
/usr/share/doc/freetds/userguide/serverthere.htm
/usr/share/doc/freetds/userguide/software.htm
/usr/share/doc/freetds/userguide/stunnel.htm
/usr/share/doc/freetds/userguide/tdshistory.htm
/usr/share/doc/freetds/userguide/tdspool.htm
/usr/share/doc/freetds/userguide/troubleshooting.htm
/usr/share/doc/freetds/userguide/unicode.htm
/usr/share/doc/freetds/userguide/unicodefreetds.htm
/usr/share/doc/freetds/userguide/unicodegoodbad.htm
/usr/share/doc/freetds/userguide/unicodeutf.htm
/usr/share/doc/freetds/userguide/uodbc.htm
/usr/share/doc/freetds/userguide/uothread.htm
/usr/share/doc/freetds/userguide/usefreetds.htm
/usr/share/doc/freetds/userguide/userguide.css
/usr/share/doc/freetds/userguide/what.htm
/usr/share/man/man1/bsqldb.1.gz
/usr/share/man/man1/bsqlodbc.1.gz
/usr/share/man/man1/datacopy.1.gz
/usr/share/man/man1/defncopy.1.gz
/usr/share/man/man1/fisql.1.gz
/usr/share/man/man1/freebcp.1.gz
/usr/share/man/man1/osql.1.gz
/usr/share/man/man1/tsql.1.gz

References

Summary

In this tutorial we learn how to install freetds on CentOS 8 using yum and dnf.