Automic VaultAutomic Vault

brew

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

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

インストール

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

macOS

Homebrew確認済み · 100%
brew install flex

local Homebrew formula metadata

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

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

Linux

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

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

Debian apt確認済み · 92%
sudo apt install flex

Debian stable package indexes · flex · ソース: deb.debian.org

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

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

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

nixpkgs package indexes · flex · ソース: raw.githubusercontent.com

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

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

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

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

概要

パッケージ概要

Fast Lexical Analyzer, generates Scanners (tokenizers)

コマンドとエイリアス

  • flex
  • flex++
  • lex

履歴

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

flex is the fast lexical analyzer generator, the long-running free-software successor in the lex family. It generates scanners for recognizing lexical patterns in text and remains a foundational build-time package for C, C++, parser, compiler, and language-tooling stacks.

プロジェクトの歴史

The upstream README describes flex as a tool for generating scanners and notes that the code derives from software contributed to Berkeley by Vern Paxson. Its distribution includes user documentation, examples, tests, internationalization files, and libfl support.

The project moved its main codebase, issue tracking, pull requests, and source releases to GitHub during the 2.6.1 release cycle in 2016, after earlier SourceForge-era mailing-list infrastructure. The 2.6.x NEWS entries record modernization work around generated scanners, portability, cross compilation, tests, build tooling, and release artifacts.

採用の歴史

flex is a standard dependency in Unix-like development environments because many source packages generate or ship scanners built from `.l` files. The supplied package metadata records availability across apk, Homebrew, Debian, Fedora, MacPorts, Nix, pacman, Ubuntu, and zypper, reflecting its role as a baseline developer tool rather than a niche application.

使われ方

Users write lexical rules and run flex to generate C or C++ scanner code. The generated scanner is then compiled into a program, commonly alongside parser generators and build systems for compilers, interpreters, protocol tools, data importers, and other text-processing software.

Package maintainers care about whether a release tarball includes generated intermediate files, which flex version built the distributed scanner, and whether cross-compilation and bootstrap paths work. The official NEWS repeatedly calls out these build and portability concerns.

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

flex is one of the canonical examples of a package that is both a user-facing command and a build dependency. It shows up in dependency graphs far from compiler projects because scanner generation is a common prebuild step, and its own bootstrap story matters to source-based distributions.

タイムライン

  • 1980s: flex originates from Berkeley-contributed scanner-generator work by Vern Paxson.
  • 2013: westes/flex GitHub repository created.
  • 2016: 2.6.1 announces GitHub as the project host for code, releases, issues, and pull requests.
  • 2016: 2.6.3 improves cross-compilation and bootstrap behavior.
  • 2017: 2.6.4 stable release includes portability, build, scanner, documentation, and test-suite fixes.

Related projects

  • lex is the historical Unix scanner generator lineage to which flex is related.
  • Bison, yacc-family parser generators, autotools, m4, and libfl are common adjacent tools in flex build and usage contexts.
  • SourceForge remains relevant for flex mailing-list archives even though the codebase and releases are on GitHub.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

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

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

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

推奨レビュー

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

実行可能ファイル

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

コマンド種類公開範囲メモ
flexcliグローバル実行可能ファイル
flex++cliグローバル実行可能ファイル
lexcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

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

ページ生成日2026-07-10
マネージャ版2.6.4
マネージャ更新日2026-06-22
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/westes/flex

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:flex
バージョン2.6.4
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/flex
ホームページhttps://github.com/westes/flex
リポジトリhttps://github.com/westes/flex
上流ドキュメントhttps://westes.github.io/flex/manual
ライセンスBSD-2-Clause
ソースアーカイブhttps://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz
最終更新2026-06-22T14:03:20-07:00
Pulseupdated
依存関係gettext
ビルド依存関係help2man
macOS 提供ライブラリm4
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 Nameflex
Version Scheme0
Revision2
Head VersionHEAD
Requirements
  • macos
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • head
  • stable

ソースデータベース一致

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

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

Debian apt95%

flex 2.6.4-8.2+b4

fast lexical analyzer generator

https://github.com/westes/flex

sudo apt install flex
  • Section: devel
  • Architecture: amd64
  • Source Package: flex
  • 2 依存関係
  • 6 任意依存関係
  • normalized package name match
  • 一致条件: Flex
Debian stable package indexes · deb.debian.org · Debian stable package indexes: flex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

flex-doc 2.6.4-8.2

Documentation for flex (a fast lexical analyzer generator)

https://github.com/westes/flex

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

libfl-dev 2.6.4-8.2+b4

static library for flex (a fast lexical analyzer generator)

https://github.com/westes/flex

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

libfl2 2.6.4-8.2+b4

SHARED library for flex (a fast lexical analyzer generator)

https://github.com/westes/flex

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

flex

nix profile install nixpkgs#flex
  • normalized package name match
  • 一致条件: Flex
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: flex from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

flex 2.6.4-8.2build1

fast lexical analyzer generator

https://github.com/westes/flex

sudo apt install flex
  • Section: devel
  • Architecture: amd64
  • 2 依存関係
  • 6 任意依存関係
  • normalized package name match
  • 一致条件: Flex
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: flex from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

flex-doc 2.6.4-8.2build1

Documentation for flex (a fast lexical analyzer generator)

https://github.com/westes/flex

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

libfl-dev 2.6.4-8.2build1

static library for flex (a fast lexical analyzer generator)

https://github.com/westes/flex

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

libfl2 2.6.4-8.2build1

SHARED library for flex (a fast lexical analyzer generator)

https://github.com/westes/flex

sudo apt install libfl2
  • Section: libs
  • Architecture: amd64
  • Source Package: flex
  • 1 依存関係
  • normalized package name match
  • 一致条件: Flex
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libfl2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

flex 2.6.4-r8

A tool for generating text-scanning programs

https://github.com/westes/flex

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

flex-dev 2.6.4-r8

A tool for generating text-scanning programs (development files)

https://github.com/westes/flex

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

flex-doc 2.6.4-r8

A tool for generating text-scanning programs (documentation)

https://github.com/westes/flex

sudo apk add flex-doc
  • License: BSD-2-Clause
  • Architecture: x86_64
  • Source Package: flex
  • normalized package name match
  • 一致条件: Flex
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: flex-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

flex-libs 2.6.4-r8

A tool for generating text-scanning programs (libraries)

https://github.com/westes/flex

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

flex 2.6.4-24.fc44

A tool for generating scanners (text pattern recognizers)

https://github.com/westes/flex

sudo dnf install flex
  • License: BSD-3-Clause-flex AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND GPL-3.0-or-later WITH Bison-exception-2.2 AND GPL-3.0-or-later WITH
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: flex
  • 4 依存関係
  • 2 提供
  • normalized package name match
  • 一致条件: Flex
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: flex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libfl-devel 2.6.4-24.fc44

Development files for the flex scanner generator

https://github.com/westes/flex

sudo dnf install libfl-devel
  • License: BSD-3-Clause-flex AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND GPL-3.0-or-later WITH Bison-exception-2.2 AND GPL-3.0-or-later WITH
  • Category: Unspecified
  • Architecture: i686
  • Source Package: flex
  • 2 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Flex
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libfl-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libfl-static 2.6.4-24.fc44

Static libraries for the flex scanner generator

https://github.com/westes/flex

sudo dnf install libfl-static
  • License: BSD-3-Clause-flex AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND GPL-3.0-or-later WITH Bison-exception-2.2 AND GPL-3.0-or-later WITH
  • Category: Unspecified
  • Architecture: i686
  • Source Package: flex
  • 3 提供
  • normalized package name match
  • 一致条件: Flex
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libfl-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

ソース経路

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

このページは 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