# Install unixodbc with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

ODBC 3 connectivity for UNIX. Version 2.3.14 via Homebrew; verified 2026-06-27.

## Install

```sh
sudo av install brew:unixodbc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install unixodbc
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install unixODBC
```

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

### Linux

- apk (92%):

```sh
sudo apk add unixodbc
```

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

- Debian apt (92%):

```sh
sudo apt install libodbc2
```

  Evidence: Debian stable package indexes: libodbc2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install unixODBC
```

  Evidence: Fedora Rawhide package metadata: unixODBC from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#unixodbc
```

  Evidence: nixpkgs package indexes: pkgs/by-name/un/unixodbc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S unixodbc
```

  Evidence: Arch Linux sync databases: unixodbc from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libodbc2
```

  Evidence: openSUSE Tumbleweed package metadata: libodbc2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:unixodbc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/unixodbc>
- **Version:** 2.3.14
- **Source summary:** ODBC 3 connectivity for UNIX
- **Homepage:** <https://www.unixodbc.org/>
- **Repository:** <https://github.com/lurcher/unixODBC>
- **Upstream docs:** <https://www.unixodbc.org/doc>
- **License:** LGPL-2.1-or-later AND GPL-2.0-or-later
- **Source archive:** <https://www.unixodbc.org/unixODBC-2.3.14.tar.gz>
- **Last updated:** 2026-06-27T17:28:37-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dltest (cli)
- isql (cli)
- iusql (cli)
- odbc_config (cli)
- odbcinst (cli)
- slencheck (cli)
- dltest (alias)
- isql (alias)
- iusql (alias)
- odbc_config (alias)
- odbcinst (alias)
- slencheck (alias)

## Dependencies

- libtool

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.3.14
- Package-manager updated: 2026-06-27
- Local data: ok
- Upstream repository: https://www.unixodbc.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

unixODBC is a free ODBC subsystem and SDK for Linux, macOS, and Unix. Its central role is the driver manager: the layer that lets applications use ODBC APIs while loading and configuring database-specific drivers on non-Windows systems.

### Project history

The upstream README describes unixODBC as an open source ODBC subsystem and SDK for Linux, Mac OSX, and UNIX, including a driver manager, installer library and command-line tool, plus command-line tools for driver installation and SQL work. Its web documentation describes it as a complete, free/open ODBC solution for UNIX/Linux.

unixODBC grew around the need to reproduce the Windows ODBC environment on non-Windows platforms. The official odbcinst guide explains that Windows ODBC used .ini-style configuration historically, and unixODBC implements the same configuration model and APIs through ini files and libodbcinst.

### Adoption history

unixODBC became infrastructure rather than an end-user application: databases, language bindings, BI tools, office suites, and proprietary drivers could target a common ODBC manager on Unix-like systems. The official documentation includes guides for DB2, FreeTDS, Informix, Perl DBD::ODBC, PHP, OpenOffice/StarOffice, connection pooling, and other integration scenarios.

Its package-manager footprint reflects that infrastructure role. The input shows it packaged across Homebrew, Alpine, Debian and Ubuntu libraries, Fedora, MacPorts, Nix, Arch, and openSUSE, often as the dependency that makes higher-level database connectors work.

### How it is used

Package users encounter unixODBC through tools such as isql, iusql, odbcinst, odbc_config, dltest, and slencheck. isql tests DSNs and runs SQL from a shell; odbcinst registers drivers and data sources; odbc_config exposes build/link flags for software compiling against the installed driver manager.

The practical admin workflow is ini-file driven. System configuration typically lives in odbcinst.ini and odbc.ini under an etc directory, while user DSNs can live in ~/.odbc.ini. The README notes that ODBCSYSINI can override where unixODBC looks for system configuration.

### Why package nerds care

unixODBC is package-nerd significant because it is the quiet shared ABI beneath many database packages. A broken driver-manager path, SQLLEN size mismatch, missing ini file, or loader issue can make unrelated database clients fail.

It is also a classic Unix packaging problem: libraries, headers, CLI diagnostics, driver registration, dynamic loading, and vendor drivers all have to agree. That is why tools such as odbc_config, odbcinst, dltest, and slencheck matter even though most users only wanted an application to connect to a database.

### Timeline

- Late 1990s-early 2000s: unixODBC developed as an ODBC subsystem for Unix and Linux platforms.
- 2001: ChangeLog entries show the 2.1.x line adding packaging and platform work, including Mac install/package directories.
- 2002: The 2.2.x line added iusql, odbcinst options, DataManager updates, MySQL/PostgreSQL driver work, and platform fixes.
- 2004: Version 2.2.10 continued portability, driver-manager, VMS, AIX, PostgreSQL, and setup improvements.
- 2015: Version 2.3.4 included driver-manager fixes, man pages, slencheck, mingw-w64 handling, and more ODBC 3.8 work.

### Related projects

- Related projects and ecosystems include Microsoft ODBC, database-specific ODBC drivers, FreeTDS, DB2, Informix, PostgreSQL and MySQL ODBC drivers, Perl DBD::ODBC, PHP ODBC integrations, OpenOffice/StarOffice data access, and vendor Unix database clients.
- The repository also points to SourceForge, GitHub, and the unixODBC web site as project resources, reflecting its long life across older and newer open source hosting.

### Sources

- <https://raw.githubusercontent.com/lurcher/unixODBC/master/ChangeLog>
- <https://raw.githubusercontent.com/lurcher/unixODBC/master/README>
- <https://www.unixodbc.org/doc/>
- <https://www.unixodbc.org/doc/UserManual/>
- <https://www.unixodbc.org/odbcinst.html>
- source_facts.package-manager


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## 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: /usr/local/etc/odbcinst.ini, /usr/local/etc/odbc.ini, /etc/odbcinst.ini, /etc/odbc.ini, ~/.odbc.ini
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** unixodbc
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** virtuoso
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - libodbc2 - 2.3.12-2: normalized package name match | Debian stable package indexes: libodbc2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ODBC Driver Manager library for Unix | https://www.unixodbc.org
- Debian apt - libodbccr2 - 2.3.12-2: normalized package name match | Debian stable package indexes: libodbccr2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ODBC Cursor library for Unix | https://www.unixodbc.org
- Debian apt - libodbcinst2 - 2.3.12-2: normalized package name match | Debian stable package indexes: libodbcinst2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Support library for accessing ODBC configuration files | https://www.unixodbc.org
- Debian apt - odbcinst - 2.3.12-2: normalized package name match | Debian stable package indexes: odbcinst from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Helper program for accessing ODBC configuration files | https://www.unixodbc.org
- Debian apt - unixodbc - 2.3.12-2: normalized package name match | Debian stable package indexes: unixodbc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Basic ODBC tools | https://www.unixodbc.org
- Debian apt - unixodbc-common - 2.3.12-2: normalized package name match | Debian stable package indexes: unixodbc-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Common ODBC configuration files | https://www.unixodbc.org
- Debian apt - unixodbc-dev - 2.3.12-2: normalized package name match | Debian stable package indexes: unixodbc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ODBC libraries for Unix (development files) | https://www.unixodbc.org
- Nix - unixodbc: normalized package name match | nixpkgs package indexes: pkgs/by-name/un/unixodbc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libodbc2 - 2.3.12-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libodbc2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | ODBC Driver Manager library for Unix | https://www.unixodbc.org
- Ubuntu apt - libodbccr2 - 2.3.12-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libodbccr2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | ODBC Cursor library for Unix | https://www.unixodbc.org
- Ubuntu apt - libodbcinst2 - 2.3.12-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libodbcinst2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Support library for accessing ODBC configuration files | https://www.unixodbc.org
- Ubuntu apt - odbcinst - 2.3.12-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: odbcinst from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Helper program for accessing ODBC configuration files | https://www.unixodbc.org
- Ubuntu apt - unixodbc - 2.3.12-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: unixodbc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Basic ODBC tools | https://www.unixodbc.org
- Ubuntu apt - unixodbc-common - 2.3.12-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: unixodbc-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Common ODBC configuration files | https://www.unixodbc.org
- Ubuntu apt - unixodbc-dev - 2.3.12-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: unixodbc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | ODBC libraries for Unix (development files) | https://www.unixodbc.org
- apk - unixodbc - 2.3.14-r1: normalized package name match | Alpine Linux edge package indexes: unixodbc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Unix Open DataBase Connectivity sub-system and SDK | https://www.unixodbc.org/


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Runtime dependency declared by Homebrew.
- [edbrowse](https://www.automicvault.com/pkg/brew/edbrowse/) - Popular package that depends on this formula.
- [erlang](https://www.automicvault.com/pkg/brew/erlang/) - Popular package that depends on this formula.
- [erlang@26](https://www.automicvault.com/pkg/brew/erlang-26/) - Popular package that depends on this formula.
- [erlang@27](https://www.automicvault.com/pkg/brew/erlang-27/) - Popular package that depends on this formula.
- [erlang@28](https://www.automicvault.com/pkg/brew/erlang-28/) - Popular package that depends on this formula.
- [freetds](https://www.automicvault.com/pkg/brew/freetds/) - Popular package that depends on this formula.
- [gdal](https://www.automicvault.com/pkg/brew/gdal/) - Popular package that depends on this formula.
- [chdig](https://www.automicvault.com/pkg/brew/chdig/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [dbhash](https://www.automicvault.com/pkg/brew/dbhash/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [dblab](https://www.automicvault.com/pkg/brew/dblab/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [dbmate](https://www.automicvault.com/pkg/brew/dbmate/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [dbml-cli](https://www.automicvault.com/pkg/brew/dbml-cli/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [diesel](https://www.automicvault.com/pkg/brew/diesel/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [eralchemy](https://www.automicvault.com/pkg/brew/eralchemy/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [golang-migrate](https://www.automicvault.com/pkg/brew/golang-migrate/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [libiodbc](https://www.automicvault.com/pkg/brew/libiodbc/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, config, connectivity, database, database-connectivity.
- [harlequin](https://www.automicvault.com/pkg/brew/harlequin/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, database, developer, developer-tools, unixodbc.

## Combined YAML source

View the package source record on GitHub. [combined/unixodbc.yml](https://github.com/automic-vault/db/blob/main/combined/unixodbc.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
