macOS
brew install freetdslocal Homebrew formula metadata
sudo port install freetdsMacPorts ports tree · databases/freetds/Portfile · source: api.github.com
brew
Libraries to talk to Microsoft SQL Server and Sybase databases. Version 1.5.18 via Homebrew; verified 2026-06-22.
install
brew install freetdslocal Homebrew formula metadata
sudo port install freetdsMacPorts ports tree · databases/freetds/Portfile · source: api.github.com
sudo apk add freetdsAlpine Linux edge package indexes · freetds · source: dl-cdn.alpinelinux.org
sudo apt install freetds-binDebian stable package indexes · freetds-bin · source: deb.debian.org
sudo dnf install freetdsFedora Rawhide package metadata · freetds · source: dl.fedoraproject.org
nix profile install nixpkgs#freetdsnixpkgs package indexes · pkgs/by-name/fr/freetds/package.nix · source: api.github.com
sudo pacman -S freetdsArch Linux sync databases · freetds · source: geo.mirror.pkgbuild.com
sudo zypper install freetds-configopenSUSE Tumbleweed package metadata · freetds-config · source: download.opensuse.org
overview
Libraries to talk to Microsoft SQL Server and Sybase databases
history
FreeTDS is a free implementation of the Sybase and Microsoft SQL Server client libraries and utilities for the Tabular Data Stream protocol. It gives Unix-like systems and other platforms DB-Library, CT-Library, ODBC, interactive SQL, and bulk-copy tooling for TDS-speaking databases.
The official user guide says FreeTDS began in early 1997 when Brian Bruns, a Sybase DBA, wanted DB-Library programs to run under Linux. The first work focused on DB-Library and TDS 5.0, then expanded to CT-Library compatibility, TDS 4.2, ODBC, and TDS 7.0/7.1 support.
As the project matured, the official history names contributors who expanded the ODBC driver, BCP support, CT-Library cursors, and documentation. The README describes the resulting codebase as portable C libraries plus utilities for Unix-like systems, Windows, VMS, and macOS.
FreeTDS grew because many open source applications needed access to Sybase and Microsoft SQL Server without relying on proprietary client libraries. The user guide explicitly cites use from Perl, PHP, and other language bindings that expect DB-Library or CT-Library APIs.
The project documentation describes the libraries as mature and stable, with users including large corporations, U.S. federal government systems, and web servers running Apache and PHP. That official framing explains why FreeTDS became a common dependency below scripting-language database adapters.
Package users commonly install FreeTDS for libtds, ODBC drivers, and command-line tools such as tsql, freebcp, fisql, osql, bsqldb, defncopy, and datacopy. Configuration revolves around freetds.conf and ODBC driver manager integration.
Current NEWS entries show ongoing maintenance around encryption, TDS 8.0, UTF-8 and old Sybase compatibility, Windows Unicode paths, ODBC behavior, bulk copy, and Unix configuration search paths.
FreeTDS is a classic compatibility-layer package: small command-line utilities on the surface, but a large C library stack underneath for database adapters. Packagers care about ODBC manager choices, OpenSSL support, iconv behavior, ABI naming, and where freetds.conf is searched.
It is also historically important because it kept DB-Library-style clients useful after vendors shifted focus. The official guide notes Microsoft's DB-Library deprecation while presenting FreeTDS as a maintained route for code that still fits that API.
security posture
No matching local secret-handling manifest was found for freetds. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
${HOME}/.freetds.conf${HOME}/.config/freetds.conf${sysconfdir}/freetds.conf (default /usr/local/etc/freetds.conf)executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
bsqldb | cli | global executable | |
bsqlodbc | cli | global executable | |
datacopy | cli | global executable | |
defncopy | cli | global executable | |
fisql | cli | global executable | |
freebcp | cli | global executable | |
osql | cli | global executable | |
tdspool | cli | global executable | |
tsql | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:freetds |
|---|---|
| Version | 1.5.18 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/freetds |
| Homepage | https://www.freetds.org/ |
| Repository | https://github.com/FreeTDS/freetds |
| Upstream docs | https://www.freetds.org/docs.html |
| License | GPL-2.0-or-later |
| Source archive | https://www.freetds.org/files/stable/freetds-1.5.18.tar.bz2 |
| Last updated | 2026-06-22T14:03:22-07:00 |
| Pulse | updated |
| Dependencies | openssl@3, unixodbc |
| Build dependencies | pkgconf |
| Uses from macOS | krb5 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | freetds |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
freetds-bin 1.3.17+ds-2+deb13u1
FreeTDS command-line utilities
sudo apt install freetds-binfreetds-common 1.3.17+ds-2+deb13u1
configuration files for FreeTDS SQL client libraries
sudo apt install freetds-commonfreetds-dev 1.3.17+ds-2+deb13u1
MS SQL and Sybase client library (static libs and headers)
sudo apt install freetds-devfreetds-doc 1.3.17+ds-2+deb13u1
FreeTDS documentation
sudo apt install freetds-doclibct4 1.3.17+ds-2+deb13u1
libraries for connecting to MS SQL and Sybase SQL servers
sudo apt install libct4libsybdb5 1.3.17+ds-2+deb13u1
libraries for connecting to MS SQL and Sybase SQL servers
sudo apt install libsybdb5tdsodbc 1.3.17+ds-2+deb13u1
ODBC driver for connecting to MS SQL and Sybase SQL servers
sudo apt install tdsodbcfreetds
nix profile install nixpkgs#freetdsfreetds-bin 1.3.17+ds-2build3
FreeTDS command-line utilities
sudo apt install freetds-binfreetds-common 1.3.17+ds-2build3
configuration files for FreeTDS SQL client libraries
sudo apt install freetds-commonfreetds-dev 1.3.17+ds-2build3
MS SQL and Sybase client library (static libs and headers)
sudo apt install freetds-devfreetds-doc 1.3.17+ds-2build3
FreeTDS documentation
sudo apt install freetds-doclibct4 1.3.17+ds-2build3
libraries for connecting to MS SQL and Sybase SQL servers
sudo apt install libct4libsybdb5 1.3.17+ds-2build3
libraries for connecting to MS SQL and Sybase SQL servers
sudo apt install libsybdb5tdsodbc 1.3.17+ds-2build3
ODBC driver for connecting to MS SQL and Sybase SQL servers
sudo apt install tdsodbcfreetds 1.5.14-r0
Tabular Datastream Library
sudo apk add freetdssource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.