# liblockfile を Homebrew, apk, dnf, Nix, pacman, apt, zypper でインストール

liblockfile のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:liblockfile
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install liblockfile
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add liblockfile
```

  証拠: Alpine Linux edge package indexes: liblockfile from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install liblockfile
```

  証拠: Fedora Rawhide package metadata: liblockfile from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#liblockfile
```

  証拠: nixpkgs package indexes: pkgs/by-name/li/liblockfile/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S liblockfile
```

  証拠: Arch Linux sync databases: liblockfile from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install liblockfile-bin
```

  証拠: Debian stable package indexes: liblockfile-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install liblockfile-devel
```

  証拠: openSUSE Tumbleweed package metadata: liblockfile-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:liblockfile
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/liblockfile>
- **バージョン:** 1.17
- **ソース概要:** Library providing functions to lock standard mailboxes
- **ホームページ:** <https://tracker.debian.org/pkg/liblockfile>
- **上流ドキュメント:** <https://tracker.debian.org/pkg/liblockfile>
- **ライセンス:** LGPL-2.0-or-later
- **ソースアーカイブ:** <https://deb.debian.org/debian/pool/main/libl/liblockfile/liblockfile_1.17.orig.tar.gz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- dotlockfile (cli)
- dotlockfile (エイリアス)

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.17
- ローカルデータ: OK
- 上流リポジトリ: https://tracker.debian.org/pkg/liblockfile
- 情報: No package-manager update timestamp was available.
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

liblockfile is a small Unix system library and utility package for creating NFS-safe lockfiles, especially the dot-lock files traditionally used to protect mailboxes in /var/mail.

### プロジェクトの歴史

The upstream README describes liblockfile as an implementation of functions found in -lmail on SysV systems, extended with functions to create, manage, and remove generic lockfiles. Its locking algorithm uses a temporary file and link(2) to create lockfiles atomically, including workarounds for NFS server behavior.

The dotlockfile utility is documented as a command-line tool to create, test, touch, and remove lockfiles. Its name comes from the traditional mailbox convention of appending .lock to the mailbox path.

### 採用の歴史

liblockfile has a long Debian packaging history and remains represented as Debian source package liblockfile, producing liblockfile-bin, liblockfile-dev, and liblockfile1. Its practical audience is mail tools, shell scripts, and legacy Unix software that need interoperable dot-locking rather than newer advisory-lock APIs.

### 使われ方

The library is used by programs that need NFS-safe lock creation. The dotlockfile command is used directly in scripts or as the setgid mail helper that lets mailbox-locking programs avoid carrying setgid mail themselves.

### パッケージ好きにとっての重要性

liblockfile is interesting because it packages an old but still sharp Unix portability problem: locking mail spools safely across local and NFS filesystems. It is small, unglamorous infrastructure that explains why some packages still ship helpers for mail-era filesystem semantics.

### タイムライン

- 2011: Changelog entry for liblockfile 1.09 recorded Debian bug fixes and cross-build cleanup.
- 2016: Upstream GitHub repository created on November 22, 2016.
- 2017: dotlockfile manual page dated January 10, 2017.
- 2019: liblockfile 1.16 simplified permission checking and quiet-mode behavior.
- 2021: liblockfile 1.17 added dotlockfile -P and -i options.

### Related projects

- The README names procmail, exim, and mutt as compatible NFS-safe lockfile users.
- Debian packaging is maintained separately at the liblockfile-debian repository.

### ソース

- <https://api.github.com/repos/miquels/liblockfile>
- <https://github.com/miquels/liblockfile>
- <https://packages.debian.org/source/trixie/liblockfile>
- <https://raw.githubusercontent.com/miquels/liblockfile/master/Changelog>
- <https://raw.githubusercontent.com/miquels/liblockfile/master/dotlockfile.1>


## セキュリティノート

library-like package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- library-like package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** liblockfile
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Debian apt - liblockfile-bin - 1.17-2: normalized package name match | Debian stable package indexes: liblockfile-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | support binaries for and cli utilities based on liblockfile | https://github.com/miquels/liblockfile
- Debian apt - liblockfile-dev - 1.17-2: normalized package name match | Debian stable package indexes: liblockfile-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development library for liblockfile | https://github.com/miquels/liblockfile
- Debian apt - liblockfile1 - 1.17-2: normalized package name match | Debian stable package indexes: liblockfile1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | NFS-safe locking library | https://github.com/miquels/liblockfile
- Nix - liblockfile: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/liblockfile/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - liblockfile-bin - 1.17-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblockfile-bin from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | support binaries for and cli utilities based on liblockfile | https://github.com/miquels/liblockfile
- Ubuntu apt - liblockfile-dev - 1.17-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblockfile-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Development library for liblockfile | https://github.com/miquels/liblockfile
- Ubuntu apt - liblockfile1 - 1.17-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblockfile1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | NFS-safe locking library | https://github.com/miquels/liblockfile
- apk - liblockfile - 1.17-r4: normalized package name match | Alpine Linux edge package indexes: liblockfile from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Shared library with NFS-safe locking functions | https://github.com/miquels/liblockfile
- apk - liblockfile-dev - 1.17-r4: normalized package name match | Alpine Linux edge package indexes: liblockfile-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Shared library with NFS-safe locking functions (development files) | https://github.com/miquels/liblockfile
- apk - liblockfile-doc - 1.17-r4: normalized package name match | Alpine Linux edge package indexes: liblockfile-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Shared library with NFS-safe locking functions (documentation) | https://github.com/miquels/liblockfile
- apk - liblockfile-static - 1.17-r4: normalized package name match | Alpine Linux edge package indexes: liblockfile-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Shared library with NFS-safe locking functions (static library) | https://github.com/miquels/liblockfile
- dnf - liblockfile - 1.17-13.fc45: normalized package name match | Fedora Rawhide package metadata: liblockfile from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | This implements a number of functions found in -lmail on SysV systems | http://packages.qa.debian.org/libl/liblockfile.html
- dnf - liblockfile-devel - 1.17-13.fc45: normalized package name match | Fedora Rawhide package metadata: liblockfile-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for liblockfile | http://packages.qa.debian.org/libl/liblockfile.html
- pacman - liblockfile - 1.17_2-1: normalized package name match | Arch Linux sync databases: liblockfile from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | a library with NFS-safe locking functions | https://packages.debian.org/unstable/libs/liblockfile1
- zypper - liblockfile-devel - 1.17-1.12: normalized package name match | openSUSE Tumbleweed package metadata: liblockfile-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for liblockfile | https://github.com/miquels/liblockfile
- zypper - liblockfile1 - 1.17-1.12: normalized package name match | openSUSE Tumbleweed package metadata: liblockfile1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Library with NFS-safe locking functions | https://github.com/miquels/liblockfile


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/ja/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [libzip](https://pkg.so/ja/brew/libzip/) - Shares pkgdb curated category or tags: c, cli, library, system.
- [libcpucycles](https://pkg.so/ja/brew/libcpucycles/) - Shares pkgdb curated category or tags: c, cli, library, system.
- [libcpuid](https://pkg.so/ja/brew/libcpuid/) - Shares pkgdb curated category or tags: c, cli, library, system.
- [zstd](https://pkg.so/ja/brew/zstd/) - Shares pkgdb curated category or tags: cli, library, system.
- [keyutils](https://pkg.so/ja/brew/keyutils/) - Shares pkgdb curated category or tags: cli, library, system.
- [fastfetch](https://pkg.so/ja/brew/fastfetch/) - Shares pkgdb curated category or tags: c, cli, system.
- [hwloc](https://pkg.so/ja/brew/hwloc/) - Shares pkgdb curated category or tags: cli, library, system.
- [wimlib](https://pkg.so/ja/brew/wimlib/) - Shares pkgdb curated category or tags: cli, library, system.
- [debianutils](https://pkg.so/ja/brew/debianutils/) - Local package facts share a topical domain. Shared terms: cli, system.
- [fakeroot](https://pkg.so/ja/brew/fakeroot/) - Local package facts share a topical domain. Shared terms: cli, system.
- [xnvme](https://pkg.so/ja/brew/xnvme/) - Local package facts share a topical domain. Shared terms: cli, file, libraries, library, system.

## Combined YAML source

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