# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 freetds

查看 freetds 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:freetds
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install freetds
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install freetds
```

  证据: MacPorts ports tree: databases/freetds/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add freetds
```

  证据: Alpine Linux edge package indexes: freetds from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install freetds
```

  证据: Fedora Rawhide package metadata: freetds from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#freetds
```

  证据: nixpkgs package indexes: pkgs/by-name/fr/freetds/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S freetds
```

  证据: Arch Linux sync databases: freetds from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install freetds-bin
```

  证据: Debian stable package indexes: freetds-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install freetds-config
```

  证据: openSUSE Tumbleweed package metadata: freetds-config from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:freetds
- **软件包管理器:** Homebrew
- **版本:** 1.5.18
- **来源摘要:** Libraries to talk to Microsoft SQL Server and Sybase databases
- **主页:** <https://www.freetds.org/>
- **仓库:** <https://github.com/FreeTDS/freetds>
- **最后更新:** 2026-06-22T14:03:22-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bsqldb (别名)
- bsqlodbc (别名)
- datacopy (别名)
- defncopy (别名)
- fisql (别名)
- freebcp (别名)
- osql (别名)
- tdspool (别名)
- tsql (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.5.18
## 项目历史与用法

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.

### 时间线

- 1984: Sybase developed the TDS protocol for Sybase SQL Server, according to the FreeTDS user guide background.
- 1990: Sybase and Microsoft entered a technology sharing agreement that led to Microsoft's SQL Server line.
- 1997: Brian Bruns began FreeTDS to run DB-Library programs on Linux.
- 2002: James K. Lowden became maintainer after joining to improve documentation.
- 1.5: Release notes add TDS 8.0 support and allow freetds.conf under ~/.config on Unix.

### Related projects

- FreeTDS/JDBC was a related Java JDBC driver mentioned in the official project history.
- DBD::Sybase is cited in the user guide as a Perl binding that works well with FreeTDS.
- unixODBC and iODBC are related driver managers used by the FreeTDS ODBC implementation.

### 来源

- <https://github.com/FreeTDS/freetds>
- <https://raw.githubusercontent.com/FreeTDS/freetds/master/NEWS.md>
- <https://raw.githubusercontent.com/FreeTDS/freetds/master/README.md>
- <https://www.freetds.org/userguide/FreeTDShistory.html>
- <https://www.freetds.org/userguide/projects.html>
- <https://www.freetds.org/userguide/what.html>


## 安全说明

没有找到 freetds 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

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.


## Configuration files

- Unix: ${HOME}/.freetds.conf, ${HOME}/.config/freetds.conf, ${sysconfdir}/freetds.conf (default /usr/local/etc/freetds.conf)
## 其他软件包管理器记录

- Debian apt - freetds-bin - 1.3.17+ds-2+deb13u1: normalized package name match | Debian stable package indexes: freetds-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FreeTDS command-line utilities | http://www.freetds.org/
- Debian apt - freetds-common - 1.3.17+ds-2+deb13u1: normalized package name match | Debian stable package indexes: freetds-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | configuration files for FreeTDS SQL client libraries | http://www.freetds.org/
- Debian apt - freetds-dev - 1.3.17+ds-2+deb13u1: normalized package name match | Debian stable package indexes: freetds-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | MS SQL and Sybase client library (static libs and headers) | http://www.freetds.org/
- Debian apt - freetds-doc - 1.3.17+ds-2+deb13u1: normalized package name match | Debian stable package indexes: freetds-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FreeTDS documentation | http://www.freetds.org/
- Debian apt - libct4 - 1.3.17+ds-2+deb13u1: normalized package name match | Debian stable package indexes: libct4 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | libraries for connecting to MS SQL and Sybase SQL servers | http://www.freetds.org/
- Debian apt - libsybdb5 - 1.3.17+ds-2+deb13u1: normalized package name match | Debian stable package indexes: libsybdb5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | libraries for connecting to MS SQL and Sybase SQL servers | http://www.freetds.org/
- Debian apt - tdsodbc - 1.3.17+ds-2+deb13u1: normalized package name match | Debian stable package indexes: tdsodbc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ODBC driver for connecting to MS SQL and Sybase SQL servers | http://www.freetds.org/
- Nix - freetds: normalized package name match | nixpkgs package indexes: pkgs/by-name/fr/freetds/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - freetds-bin - 1.3.17+ds-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: freetds-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | FreeTDS command-line utilities | http://www.freetds.org/
- Ubuntu apt - freetds-common - 1.3.17+ds-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: freetds-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | configuration files for FreeTDS SQL client libraries | http://www.freetds.org/
- Ubuntu apt - freetds-dev - 1.3.17+ds-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: freetds-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | MS SQL and Sybase client library (static libs and headers) | http://www.freetds.org/
- Ubuntu apt - freetds-doc - 1.3.17+ds-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: freetds-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | FreeTDS documentation | http://www.freetds.org/
- Ubuntu apt - libct4 - 1.3.17+ds-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libct4 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | libraries for connecting to MS SQL and Sybase SQL servers | http://www.freetds.org/
- Ubuntu apt - libsybdb5 - 1.3.17+ds-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libsybdb5 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | libraries for connecting to MS SQL and Sybase SQL servers | http://www.freetds.org/
- Ubuntu apt - tdsodbc - 1.3.17+ds-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: tdsodbc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | ODBC driver for connecting to MS SQL and Sybase SQL servers | http://www.freetds.org/
- apk - freetds - 1.5.14-r0: normalized package name match | Alpine Linux edge package indexes: freetds from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Tabular Datastream Library | https://www.freetds.org/


## Combined YAML source

View the package source record on GitHub. [combined/freetds.yml](https://github.com/mxcl/pkgdb/blob/main/combined/freetds.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
