# 使用 Homebrew, MacPorts, Nix 安装 fsql

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

## 安装

```sh
sudo av install brew:fsql
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fsql
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fsql
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fsql
```

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

## 软件包事实

- **软件包键:** brew:fsql
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fsql>
- **版本:** 0.5.2
- **来源摘要:** Search through your filesystem with SQL-esque queries
- **主页:** <https://github.com/kashav/fsql>
- **仓库:** <https://github.com/kashav/fsql>
- **许可证:** MIT
- **源码归档:** <https://github.com/kashav/fsql/archive/refs/tags/v0.5.2.tar.gz>
- **最后更新:** 2026-07-25T20:54:35-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- fsql (cli)
- fsql (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.5.2
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/kashav/fsql
- 检测到的最新版本: v0.5.2 (当前)
## 项目历史与用法

fsql is a Go command-line tool that searches a filesystem using SQL-like queries.

### 项目历史

The fsql repository was created in 2017. Its README presents the tool as a filesystem search utility with a query language modeled on SELECT, FROM, and WHERE clauses rather than as a database server or indexer.

### 采用历史

The official README documents installation from release binaries, Go source, Homebrew, and manual builds. The supplied package data also records packaging in Homebrew, MacPorts, and Nix.

### 使用方式

fsql accepts a query on the command line or through stdin and can also run interactively. Queries select file attributes such as name, size, time, hash, and mode from one or more filesystem paths.

The README documents SQL-like operators including equality, LIKE, regular-expression matching, numeric comparisons, boolean conjunctions, negation, and output modifiers for hashes, case, paths, sizes, and times.

### 为什么软件包爱好者会关心

fsql is notable as a small package-manager-friendly CLI that puts a relational query idiom over ordinary files. Its appeal is less about infrastructure scale and more about making ad hoc filesystem inspection scriptable.

### 时间线

- 2017: Public GitHub repository created.
- 2017: README documented binary, Go, Homebrew, and manual installation paths.
- 2024: Upstream repository metadata showed continued maintenance activity.

### Related projects

- The tool sits in the same practical space as find, mdfind, and other filesystem search CLIs, but the official README frames it specifically around a SQL-esque query language.

### 来源

- <https://api.github.com/repos/kashav/fsql>
- <https://github.com/kashav/fsql>
- <https://raw.githubusercontent.com/kashav/fsql/master/README.md>


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fsql
- **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

## 其他软件包管理器记录

- Nix - fsql: normalized package name match | nixpkgs package indexes: pkgs/by-name/fs/fsql/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - fsql: normalized package name match | MacPorts ports tree: sysutils/fsql/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [fselect](https://pkg.so/zh-hans/brew/fselect/) - Shares pkgdb curated category or tags: cli, developer-tools, file-search, filesystem, sql-like-query.
- [uutils-findutils](https://pkg.so/zh-hans/brew/uutils-findutils/) - Shares pkgdb curated category or tags: cli, developer-tools, filesystem.
- [broot](https://pkg.so/zh-hans/brew/broot/) - Shares pkgdb curated category or tags: cli, developer-tools, filesystem.
- [mpremote](https://pkg.so/zh-hans/brew/mpremote/) - Shares pkgdb curated category or tags: cli, developer-tools, filesystem.
- [watcher](https://pkg.so/zh-hans/brew/watcher/) - Shares pkgdb curated category or tags: cli, developer-tools, filesystem.
- [fclones](https://pkg.so/zh-hans/brew/fclones/) - Shares pkgdb curated category or tags: cli, developer-tools, filesystem.
- [pipe-rename](https://pkg.so/zh-hans/brew/pipe-rename/) - Shares pkgdb curated category or tags: cli, developer-tools, filesystem.
- [as-tree](https://pkg.so/zh-hans/brew/as-tree/) - Shares pkgdb curated category or tags: cli, developer-tools, filesystem.
- [fuzzy-find](https://pkg.so/zh-hans/brew/fuzzy-find/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, file, file-search.
- [jump](https://pkg.so/zh-hans/brew/jump/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, file, filesystem.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
