How to Install and Uninstall flex Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 02,2024

1. Install "flex" package

Learn how to install flex on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install flex

2. Uninstall "flex" package

Please follow the step by step instructions below to uninstall flex on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove flex $ sudo apt autoclean && sudo apt autoremove

3. Information about the flex package on Ubuntu 21.10 (Impish Indri)

Package: flex
Architecture: amd64
Version: 2.6.4-8build1
Multi-Arch: foreign
Priority: optional
Section: devel
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Manoj Srivastava
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 972
Pre-Depends: debconf | debconf-2.0
Depends: libc6 (>= 2.34), m4
Recommends: gcc | c-compiler, libfl-dev
Suggests: bison, build-essential, flex-doc
Filename: pool/main/f/flex/flex_2.6.4-8build1_amd64.deb
Size: 306740
MD5sum: 60af0b9d5dc12898f6ca8fbe17a339be
SHA1: a22f62d067a0fa96b2b867a9da135ac9ea2025d9
SHA256: f0bf50085f9a3c21ff6b4b1aea1921a61e4948b4944340dce3d01faaa15a31ef
SHA512: e4ee05c50322ab4c5d551236bb11b974722c845667fad3a0b5c51d2b9e79a92a5d4f99b37caf0d60fcfa389b6df826924dba387b6023c4dddcb7ec28ec44886d
Homepage: https://github.com/westes/flex
Description-en: fast lexical analyzer generator
Flex is a tool for generating scanners: programs which recognized lexical
patterns in text. It reads the given input files for a description of a
scanner to generate. The description is in the form of pairs of regular
expressions and C code, called rules. Flex generates as output a C source
file, lex.yy.c, which defines a routine yylex(). This file is compiled
and linked with the -lfl library to produce an executable. When the
executable is run, it analyzes its input for occurrences of the regular
expressions. Whenever it finds one, it executes the corresponding C code.
Description-md5: c30a7ef9a61fca3debe97b92c3f65013