# 使用 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
- **版本:** 0.5.2
- **来源摘要:** Search through your filesystem with SQL-esque queries
- **主页:** <https://github.com/kashav/fsql>
- **仓库:** <https://github.com/kashav/fsql>
- **最后更新:** 2026-07-25T20:54:35-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fsql (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
