Automic VaultAutomic Vault

brew

使用 Homebrew, apk, MacPorts, Nix, winget 安装 flock

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install flock

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install flock

MacPorts ports tree · sysutils/flock/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add flock

Alpine Linux edge package indexes · flock · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#flock

nixpkgs package indexes · pkgs/by-name/fl/flock/package.nix · 来源: api.github.com

Windows

Windows Package Manager已验证 · 92%
winget install --id FlockFZ.Flock -e

Windows Package Manager source index · FlockFZ.Flock · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Lock file during command

命令和别名

  • flock

历史

项目历史与用法

discoteq flock(1) is a portable command-line implementation of the Unix file-locking utility. It exists for systems where the util-linux flock(1) command is absent, inconvenient, or not portable enough.

项目历史

The project README explicitly frames the package as an answer to the question of why another flock(1) exists when util-linux already includes one. Its distinguishing goals are support across Linux, Illumos, Darwin, and FreeBSD, testing of major behavior and edge cases, an ISC license, and public source and issue tracking.

The GitHub release history dates the public package line at least to v0.1.1 in 2014, with later v0.2.x releases in 2014 and 2015 and a v0.4.0 release in 2020.

采用历史

The package is especially relevant on macOS and other non-Linux Unix-like systems because the README gives Homebrew and MacPorts installation paths. The supplied package facts also list Alpine, Nix, and other package-manager entries.

Its adoption pattern is practical rather than framework-driven: shell scripts, cron jobs, backups, and deploy tasks use flock to serialize work with a lock file.

使用方式

The common usage is to run flock with a lock-file path followed by a command, such as protecting an echo or rsync invocation so only one instance proceeds at a time.

Because it is a small system utility, its value is in predictable process coordination from shell scripts without embedding lock handling into each script.

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

For package maintainers, discoteq flock is a good example of packaging a small compatibility utility to make Unix scripts more portable across distributions and operating systems.

It matters in package-manager culture because the command name overlaps with a util-linux tool: correct formula naming, conflict handling, and platform behavior are the interesting parts, not a large dependency graph.

时间线

  • 2014: Public GitHub releases include v0.1.1 and v0.2.0.
  • 2015: The v0.2.x release series continues.
  • 2020: v0.4.0 is released with source tarball installation instructions referenced by the README.

Related projects

  • util-linux provides the well-known Linux flock(1) implementation that this project compares itself with.
  • bats-core is used by the project test suite.

安全态势

尚未找到受保护工具覆盖

没有找到 flock 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 13 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
flockcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本0.4.0
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/discoteq/flock

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息No cached GitHub release or tag data was available.https://github.com/discoteq/flocknone 置信度

安装元数据

软件包元数据

软件包键brew:flock
版本0.4.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/flock
主页https://github.com/discoteq/flock
仓库https://github.com/discoteq/flock
上游文档https://github.com/discoteq/flock#readme
许可证ISC
源码归档https://github.com/discoteq/flock/releases/download/v0.4.0/flock-0.4.0.tar.xz
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameflock
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

flock

nix profile install nixpkgs#flock
  • normalized package name match
  • 匹配方式:Flock
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/fl/flock/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

flock 2.42-r0

File locker from util-linux

https://git.kernel.org/cgit/utils/util-linux/util-linux.git

sudo apk add flock
  • License: MIT
  • Architecture: x86_64
  • Source Package: util-linux
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Flock
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: flock from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
MacPorts95%

flock

sudo port install flock
  • normalized package name match
  • 匹配方式:Flock
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/flock/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
winget95%

FlockFZ.Flock

winget install --id FlockFZ.Flock -e
  • normalized package name match
  • 匹配方式:Flock
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: FlockFZ.Flock from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment