# Install octosql with Homebrew, MacPorts, Nix, scoop

SQL query tool to analyze data from different file formats and databases. Version 0.13.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:octosql
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install octosql
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install octosql
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#octosql
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/octosql
```

  Evidence: Scoop official bucket manifest trees: bucket/octosql.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:octosql
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/octosql>
- **Version:** 0.13.0
- **Source summary:** SQL query tool to analyze data from different file formats and databases
- **Homepage:** <https://github.com/cube2222/octosql/>
- **Repository:** <https://github.com/cube2222/octosql>
- **Upstream docs:** <https://github.com/cube2222/octosql#readme>
- **License:** MPL-2.0
- **Source archive:** <https://github.com/cube2222/octosql/archive/refs/tags/v0.13.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- octosql (cli)
- octosql (alias)

## Build dependencies

- go

## 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: 0.13.0
- Local data: ok
- Upstream repository: https://github.com/cube2222/octosql
- Upstream latest detected: v0.13.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

OctoSQL is a Go CLI query engine that lets users run SQL across files and databases through one interface. Its hook is practical and package-index friendly: JSON, CSV, TSV, Parquet, stdin streams, and database plugins can all become SQL tables.

### Project history

The public repository was created on 2019-03-03. The README describes OctoSQL as both a CLI for joining, analyzing, and transforming data from multiple file formats and databases, and as an extensible dataflow engine that applications can embed for SQL access.

### Adoption history

OctoSQL gained enough distribution footprint to appear in Homebrew, MacPorts, Nix, and Scoop package metadata. The GitHub API metadata recorded Go as the primary language and repository topics including sql, query-engine, data-analysis, csv, json, postgresql, mysql, and redis.

### How it is used

Users run commands such as octosql "SELECT * FROM ./myfile.json" or join local files with configured databases. Built-in file support covers JSONLines, CSV, TSV, Parquet, line-oriented text, and stdin tables; additional database support is installed through OctoSQL plugins and configured in octosql.yml.

### Why package nerds care

OctoSQL sits in the useful CLI niche between shell text tools, SQLite/DuckDB-style local querying, and heavier federated query engines. It is significant as a packaged single-purpose developer tool: install one binary, point it at heterogeneous data, and use SQL instead of format-specific scripts.

### Timeline

- 2019-03-03: public GitHub repository created.
- 2026-07-01: Homebrew formula metadata listed stable version 0.13.0 and binary bottles for macOS and Linux variants.

### Related projects

- Comparable tools in the same package-nerd neighborhood include DuckDB's CLI for local analytical SQL and other command-line query tools for files, but OctoSQL's plugin tables and database/file joins give it a federated-query flavor.

### Sources

- <https://api.github.com/repos/cube2222/octosql>
- <https://formulae.brew.sh/api/formula/octosql.json>
- <https://formulae.brew.sh/formula/octosql>
- <https://github.com/cube2222/octosql>
- <https://raw.githubusercontent.com/cube2222/octosql/master/README.md>


## 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:** octosql
- **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:** head, stable

## Other Package-Manager Records

- Nix - octosql: normalized package name match | nixpkgs package indexes: pkgs/by-name/oc/octosql/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - octosql: normalized package name match | MacPorts ports tree: databases/octosql/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/octosql: normalized package name match | Scoop official bucket manifest trees: bucket/octosql.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 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.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [beanquery](https://www.automicvault.com/pkg/brew/beanquery/) - Shares av.db curated category or tags: cli, data, query-tools, sql.
- [dsq](https://www.automicvault.com/pkg/brew/dsq/) - Shares av.db curated category or tags: cli, data, query-tools, sql.
- [qo](https://www.automicvault.com/pkg/brew/qo/) - Shares av.db curated category or tags: cli, data, query-tools, sql.
- [mcp-toolbox](https://www.automicvault.com/pkg/brew/mcp-toolbox/) - Shares av.db curated category or tags: cli, data, databases, sql.
- [qp](https://www.automicvault.com/pkg/brew/qp/) - Shares av.db curated category or tags: cli, data, query-tools.
- [anyquery](https://www.automicvault.com/pkg/brew/anyquery/) - Shares av.db curated category or tags: cli, data, sql.
- [apache-drill](https://www.automicvault.com/pkg/brew/apache-drill/) - Shares av.db curated category or tags: cli, data, sql.
- [apgdiff](https://www.automicvault.com/pkg/brew/apgdiff/) - Shares av.db curated category or tags: cli, data, sql.

## Combined YAML source

View the package source record on GitHub. [combined/octosql.yml](https://github.com/automic-vault/db/blob/main/combined/octosql.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
