# Install sqlsmith with Homebrew, apt, pacman

Random SQL query generator. Version 1.5 via Homebrew; verified 2026-06-07.

## Install

```sh
sudo av install brew:sqlsmith
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sqlsmith
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install sqlsmith
```

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

- pacman (92%):

```sh
sudo pacman -S sqlsmith
```

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

## Package facts

- **Package key:** brew:sqlsmith
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/sqlsmith>
- **Version:** 1.5
- **Source summary:** Random SQL query generator
- **Homepage:** <https://github.com/anse1/sqlsmith>
- **Repository:** <https://github.com/anse1/sqlsmith>
- **Upstream docs:** <https://github.com/anse1/sqlsmith#readme>
- **License:** GPL-3.0-only
- **Source archive:** <https://github.com/anse1/sqlsmith/archive/refs/tags/v1.5.tar.gz>
- **Last updated:** 2026-06-07T21:46:28Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- sqlsmith (cli)
- sqlsmith (alias)

## Dependencies

- libpq
- libpqxx

## Build dependencies

- autoconf
- autoconf-archive
- automake
- pkgconf

## Uses from macOS

- sqlite

## 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: 1.5
- Package-manager updated: 2026-06-07
- Local data: ok
- Upstream repository: https://github.com/anse1/sqlsmith
- Upstream latest detected: v1.5 (current)
## Project history and usage

SQLsmith is a random SQL query generator used for database fuzz testing and benchmarking.

### Project history

The official README describes SQLsmith as a random SQL query generator whose paragon is Csmith, the random C program generator used for compiler quality assurance. The first GitHub release, SQLsmith 1.0, was published on May 30 after development that had already found about thirty PostgreSQL bugs.

Version 1.0 targeted PostgreSQL 9.5 or later. Later official release notes document a broader scope, including version 1.2 adding SQLite3 and MonetDB support, support for older PostgreSQL releases, automatic blacklisting of unsupported grammar, and grammar improvements.

### Adoption history

The README states that since 2015 SQLsmith found 118 bugs in alphas, betas, and releases of supported database products, including security vulnerabilities, plus bugs in extensions and libraries. The supplied package-manager facts show distribution through Homebrew, Debian, Ubuntu, and Arch.

### How it is used

SQLsmith connects to a target database, reads schema information, generates random SQL, sends it to the database, and rolls statements back. The README documents PostgreSQL, SQLite, and MonetDB invocations, logging with --log-to, verbose progress output, seeds, dry runs, and large-scale testing support.

### Why package nerds care

Package nerds care about SQLsmith because it turns database fuzzing into an installable CLI. It is useful to database hackers, distro maintainers, and extension authors who want randomized workload generation without building a custom fuzzer for every database target.

### Timeline

- 2015: README says SQLsmith began finding bugs in supported database products.
- 2016: SQLsmith 1.0 release notes describe PostgreSQL fuzz testing and about thirty bugs found during development.
- 2018: SQLsmith 1.2 release notes add SQLite3 and MonetDB support.
- 2026: Repository release list shows SQLsmith 1.5 as latest.

### Related projects

- The official README explicitly relates SQLsmith to Csmith and supports PostgreSQL, SQLite3, and MonetDB targets.

### Sources

- <https://github.com/anse1/sqlsmith>
- <https://github.com/anse1/sqlsmith/releases>
- <https://github.com/anse1/sqlsmith/wiki#score-list>
- 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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sqlsmith
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **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 - sqlsmith - 1.4-1+b4: normalized package name match | Debian stable package indexes: sqlsmith from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | random SQL query generator | https://github.com/anse1/sqlsmith
- Ubuntu apt - sqlsmith - 1.4-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: sqlsmith from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | random SQL query generator | https://github.com/anse1/sqlsmith
- pacman - sqlsmith - 1.5-1: normalized package name match | Arch Linux sync databases: sqlsmith from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A random SQL query generator | https://github.com/anse1/sqlsmith


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [libpq](https://www.automicvault.com/pkg/brew/libpq/) - Runtime dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [sqlx-cli](https://www.automicvault.com/pkg/brew/sqlx-cli/) - Shares av.db curated category or tags: cli, databases, developer-tools, postgresql, sql.
- [sqlancer](https://www.automicvault.com/pkg/brew/sqlancer/) - Shares av.db curated category or tags: cli, database-testing, developer-tools, sql, testing.
- [dbmate](https://www.automicvault.com/pkg/brew/dbmate/) - Shares av.db curated category or tags: cli, developer-tools, postgresql, sql, sqlite.
- [tsung](https://www.automicvault.com/pkg/brew/tsung/) - Shares av.db curated category or tags: cli, developer-tools, postgresql, testing.
- [abnfgen](https://www.automicvault.com/pkg/brew/abnfgen/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [allure](https://www.automicvault.com/pkg/brew/allure/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [artillery](https://www.automicvault.com/pkg/brew/artillery/) - Shares av.db curated category or tags: cli, developer-tools, testing.
- [buildpulse-test-reporter](https://www.automicvault.com/pkg/brew/buildpulse-test-reporter/) - Shares av.db curated category or tags: cli, developer-tools, testing.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
