Automic VaultAutomic Vault

brew

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

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

インストール

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

macOS

Homebrew確認済み · 100%
brew install gflags

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install gflags

MacPorts ports tree · devel/gflags/Portfile · ソース: api.github.com

Linux

Alpine Linux apk確認済み · 92%
sudo apk add gflags

Alpine Linux edge package indexes · gflags · ソース: dl-cdn.alpinelinux.org

Fedora dnf確認済み · 92%
sudo dnf install gflags

Fedora Rawhide package metadata · gflags · ソース: dl.fedoraproject.org

Nix確認済み · 92%
nix profile install nixpkgs#gflags

nixpkgs package indexes · pkgs/by-name/gf/gflags/package.nix · ソース: api.github.com

Arch Linux pacman確認済み · 92%
sudo pacman -S gflags

Arch Linux sync databases · gflags · ソース: geo.mirror.pkgbuild.com

openSUSE zypper確認済み · 92%
sudo zypper install gflags

openSUSE Tumbleweed package metadata · gflags · ソース: download.opensuse.org

Debian apt確認済み · 92%
sudo apt install libgflags-dev

Debian stable package indexes · libgflags-dev · ソース: deb.debian.org

概要

パッケージ概要

Library for processing command-line flags

コマンドとエイリアス

  • gflags_completions.sh

履歴

プロジェクトの歴史と使われ方

gflags is the open-source C++ command-line flags library that began as Google Commandline Flags. Its distinguishing design is that flag definitions can live in the source file that uses them, with the library collecting, parsing, validating, and documenting those flags for an executable.

プロジェクトの歴史

The changelog records a Google Inc. 0.1 release in December 2006, followed by 1.0 in October 2008 and several google-gflags releases through 2011. In January 2012, the project was renamed from google-gflags to gflags as Google stepped back from ownership and Andreas Schuh became maintainer.

採用の歴史

gflags spread through C++ infrastructure because it offered a Google-style alternative to getopt-like parsers: each library or translation unit could declare its own flags, while users still received unified help output and parsing behavior. Later releases emphasized package and build-system integration, including CMake, Bazel, pkg-config, Homebrew, Debian/Ubuntu packages, and vcpkg.

使われ方

Practitioners add `DEFINE_*` and `DECLARE_*` macros in C++ code, link the library, call the parser during program startup, and then read `FLAGS_name` variables from the relevant code. The installation docs cover use through distro packages, Homebrew, Bazel, vcpkg, and CMake.

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

gflags matters to package maintainers because it is both a runtime library and a build-system integration target for many C++ projects. The long namespace transition from `google` to `gflags`, plus compatibility for projects such as glog, made ABI and include-path behavior unusually important.

タイムライン

  • 2006: Google Inc. released google-gflags 0.1.
  • 2008: google-gflags 1.0 was released.
  • 2012: google-gflags was renamed to gflags and community ownership began.
  • 2014: Version 2.1 switched the build configuration to CMake and changed the default namespace to `gflags`.
  • 2015: Version 2.1.2 completed the move from Google Code to GitHub.
  • 2025: Version 2.3.0 added maintenance fixes for Bazel, CMake, QNX, and option processing.

Related projects

  • The README points Abseil users to Abseil Flags, noting that an internal fork of the library was re-released as part of Abseil. The gflags organization also includes python-gflags history, which moved to Google's Python repository and later to Abseil Python guidance.

セキュリティ状態

リスクレベル: グリーン

library-like package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • library-like package without higher-risk signals

信号

  • metadata:library-like

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
gflags_completions.shcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-10
マネージャ版2.3.0
マネージャ更新日
ローカルデータOK
上流最新
検出された最新v2.3.0

https://github.com/gflags/gflags

  • 情報No package-manager update timestamp was available.信頼度 低

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:gflags
バージョン2.3.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/gflags
ホームページhttps://gflags.github.io/gflags/
リポジトリhttps://github.com/gflags/gflags
上流ドキュメントhttps://gflags.github.io/gflags
ライセンスBSD-3-Clause
ソースアーカイブhttps://github.com/gflags/gflags/archive/refs/tags/v2.3.0.tar.gz
ビルド依存関係cmake
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソースデータベース一致

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

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

libgflags-dev 2.2.2-2

commandline flags module for C++ (development files)

https://gflags.github.io/gflags/

sudo apt install libgflags-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gflags
  • 1 依存関係
  • normalized package name match
  • 一致条件: Gflags
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgflags-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgflags-doc 2.2.2-2

documentation of gflags

https://gflags.github.io/gflags/

sudo apt install libgflags-doc
  • Section: doc
  • Architecture: all
  • Source Package: gflags
  • normalized package name match
  • 一致条件: Gflags
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgflags-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgflags2.2 2.2.2-2

commandline flags module for C++ (shared library)

https://gflags.github.io/gflags/

sudo apt install libgflags2.2
  • Section: libs
  • Architecture: amd64
  • Source Package: gflags
  • 3 依存関係
  • normalized package name match
  • 一致条件: Gflags
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgflags2.2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gflags

nix profile install nixpkgs#gflags
  • normalized package name match
  • 一致条件: Gflags
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gf/gflags/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libgflags-dev 2.2.2-2build1

commandline flags module for C++ (development files)

https://gflags.github.io/gflags/

sudo apt install libgflags-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: gflags
  • 1 依存関係
  • normalized package name match
  • 一致条件: Gflags
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgflags-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libgflags-doc 2.2.2-2build1

documentation of gflags

https://gflags.github.io/gflags/

sudo apt install libgflags-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: gflags
  • normalized package name match
  • 一致条件: Gflags
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgflags-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libgflags2.2 2.2.2-2build1

commandline flags module for C++ (shared library)

https://gflags.github.io/gflags/

sudo apt install libgflags2.2
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: gflags
  • 3 依存関係
  • normalized package name match
  • 一致条件: Gflags
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgflags2.2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

gflags 2.3.0-r0

The gflags package contains a C++ library that implements commandline flags processing.

https://gflags.github.io/gflags/

sudo apk add gflags
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: gflags
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Gflags
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gflags from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

gflags-dev 2.3.0-r0

The gflags package contains a C++ library that implements commandline flags processing. (development files)

https://gflags.github.io/gflags/

sudo apk add gflags-dev
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: gflags
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Gflags
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gflags-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

gflags 2.2.2-19.fc44

Library for commandline flag processing

https://gflags.github.io/gflags/

sudo dnf install gflags
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gflags
  • 5 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: Gflags
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gflags from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gflags-devel 2.2.2-19.fc44

Development files for gflags

https://gflags.github.io/gflags/

sudo dnf install gflags-devel
  • License: LicenseRef-Callaway-BSD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gflags
  • 5 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: Gflags
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gflags-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

gflags 2.2.2-6

C++ Library for commandline flag processing

https://github.com/schuhschuh/gflags

sudo pacman -S gflags
  • License: BSD-3-Clause
  • Architecture: x86_64
  • 3 依存関係
  • normalized package name match
  • 一致条件: Gflags
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gflags from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

gflags 2.2.2-4.5

Library for commandline flag processing

https://github.com/gflags/gflags

sudo zypper install gflags
  • License: BSD-3-Clause
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: gflags
  • 2 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Gflags
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gflags from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gflags-devel 2.2.2-4.5

Development files for the dynamic gflags library

https://github.com/gflags/gflags

sudo zypper install gflags-devel
  • License: BSD-3-Clause
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: gflags
  • 2 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: Gflags
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gflags-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libgflags2_2 2.2.2-4.5

Library for commandline flag processing

https://github.com/gflags/gflags

sudo zypper install libgflags2_2
  • License: BSD-3-Clause
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: gflags
  • 4 依存関係
  • 3 提供
  • normalized package name match
  • 一致条件: Gflags
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libgflags2_2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

gflags

sudo port install gflags
  • normalized package name match
  • 一致条件: Gflags
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/gflags/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment