Automic VaultAutomic Vault

brew

Installer flex avec Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de flex pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install flex

local Homebrew formula metadata

MacPortsvérifié · 94%
sudo port install flex

MacPorts ports tree · devel/flex/Portfile · Source: api.github.com

Linux

Alpine Linux apkvérifié · 92%
sudo apk add flex

Alpine Linux edge package indexes · flex · Source: dl-cdn.alpinelinux.org

Debian aptvérifié · 92%
sudo apt install flex

Debian stable package indexes · flex · Source: deb.debian.org

Fedora dnfvérifié · 92%
sudo dnf install flex

Fedora Rawhide package metadata · flex · Source: dl.fedoraproject.org

Nixvérifié · 92%
nix profile install nixpkgs#flex

nixpkgs package indexes · flex · Source: raw.githubusercontent.com

Arch Linux pacmanvérifié · 92%
sudo pacman -S flex

Arch Linux sync databases · flex · Source: geo.mirror.pkgbuild.com

openSUSE zyppervérifié · 92%
sudo zypper install flex

openSUSE Tumbleweed package metadata · flex · Source: download.opensuse.org

aperçu

Résumé du paquet

Fast Lexical Analyzer, generates Scanners (tokenizers)

Commandes et alias

  • flex
  • flex++
  • lex

historique

Historique du projet et usages

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.

Historique du projet

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.

Historique d'adoption

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.

Modes d'utilisation

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.

Pourquoi les passionnés de paquets s'y intéressent

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.

Chronologie

  • 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.

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucun hook post-install Homebrew n’est enregistré dans les métadonnées de formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 13 plateformes.
  • S’installe avec 1 dépendances d’exécution.
  • Les métadonnées de compilation listent 1 dépendances de compilation.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

exécutables

Exécutables installés

CommandeTypeExpositionNote
flexcliexécutable global
flex++cliexécutable global
lexcliexécutable global

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-07-10
version du gestionnaire2.6.4
gestionnaire mis à jour2026-06-22
données localesOK
amontnot checked
dernière version détectéenon détecté

https://github.com/westes/flex

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:flex
Version2.6.4
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/flex
Page d'accueilhttps://github.com/westes/flex
Dépôthttps://github.com/westes/flex
Docs amonthttps://westes.github.io/flex/manual
LicenceBSD-2-Clause
Archive sourcehttps://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz
Dernière mise à jour2026-06-22T14:03:20-07:00
Pulseupdated
Dépendancesgettext
Dépendances de compilationhelp2man
Bibliothèques fournies par macOSm4
Bouteilledisponible (sur arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
post-install Homebrewnon défini
Serviceaucun déclaré

faits du registre

Détails de la base source

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

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

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 Dépendances
  • 6 dépendances optionnelles
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • 6 dépendances optionnelles
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 2 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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 fournit
  • normalized package name match
  • Correspondance par : 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

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

  • 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