🍺 BREW Explorer

← all formulae

flock

brew install flock v0.4.0 ISC

Lock file during command

554
30-day installs · #1681
2.0k
90-day · #1587
5.0k
365-day · #1932
231
★ GitHub stars · updated 4mo ago

GitHub topics

boring portable

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Lock file during command",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:37:43+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "flock",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-04-17T23:16:49Z",
  "github_readme_excerpt": "flock(1)\n=======\n\n**flock(1)** locks files\n\n## The simplest thing that could possibly work\n\nTo exclusively lock `/tmp/my.lock` while running the utility\n`echo \"hello, world!\"`:\n\n    flock /tmp/my.lock echo \"hello, world!\"\n\nYou can also use to run a single instance of rsync at a time - note: no need to escape double quotes\n\n    flock -n /tmp/my-lock.lock rsync -avr -e \"ssh -p 22\" \"~/my path with spaces/\" user@remote-host:/Documents/\n\n## Installing\n\nOn macOS using Homebrew:\n\n    brew install flock\n\nOn macOS using MacPorts:\n\n    port install flock\n\nFrom source:\n\n    FLOCK_VERSION=0.4.0\n    wget https://github.com/discoteq/flock/releases/download/v${FLOCK_VERSION}/flock-${FLOCK_VERSION}.tar.xz\n    xz -dc flock-${FLOCK_VERSION}.tar.xz | tar -x\n    cd flock-${FLOCK_VERSION}\n    ./configure\n    make\n    make install\n\nTo run the test suite, [bats-core](https://github.com/bats-core/bats-core) is required:\n\n    make check\n\n## Wait, isn\u0027t there already a flock(1)?\n\nYep, it\u0027s part of [util-linux](https://en.wikipedia.org/wiki/Util-linux).\n\nWhat makes discoteq flock(1) different is:\n\n* Support for latest stable Linux (Debian \u0026 CentOS), Illumos (OmniOS \u0026 SmartOS), Darwin \u0026 FreeBSD\n* Testing for all major features and edge conditions\n* ISC license\n* Public access to source history and bug tracking\n\n## Project Principles\n\n* Community: If a newbie has a bad time, it\u0027s a bug.\n* Software: Make it work, then make it right, then make it fast.\n* Technology: If it doesn\u0027t do a thing today, we can make it do it tomorrow.\n\n## Contributing\n\nGot an idea? Something smell wrong? Cause you pain? Or lost seconds of your life you\u0027ll never get back?\n\nAll contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.\n\nProgramming is not a required skill. Whatever you\u0027ve seen about open source and maintainers or community members saying \"send patches or die\" - you will not see that here.\n\nIt is more important to me that you are able to c",
  "github_repo": "discoteq/flock",
  "github_stars": 231,
  "github_topics": [
    "boring",
    "portable"
  ],
  "homepage": "https://github.com/discoteq/flock",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 554,
  "installs_365d": 5042,
  "installs_90d": 2025,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "ISC",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "flock",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 1681,
  "rank_365d": 1932,
  "rank_90d": 1587,
  "raw_hash": "ce1e18db8ad2f38b",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/f/flock.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "0.4.0",
  "versioned_formulae": [],
  "why_use_this": null
}