How to Install and Uninstall flex Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 01,2024

1. Install "flex" package

Please follow the guidance below to install flex on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install flex

2. Uninstall "flex" package

Here is a brief guide to show you how to uninstall flex on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the flex package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: flex
Priority: optional
Section: devel
Installed-Size: 808
Maintainer: Ubuntu Developers
Original-Maintainer: Manoj Srivastava
Architecture: amd64
Version: 2.6.0-11
Depends: libc6 (>= 2.14), m4, libfl-dev (= 2.6.0-11), dpkg (>= 1.15.4) | install-info
Pre-Depends: debconf | debconf-2.0
Recommends: gcc | c-compiler
Suggests: bison, build-essential
Filename: pool/main/f/flex/flex_2.6.0-11_amd64.deb
Size: 289798
MD5sum: 229bd8e5cc6325cb88e314c8fa00e97e
SHA1: 39adcaf41fae21be6c2aef18758eef8be179cd75
SHA256: 97bd483705eebede2f35dacc9c766c0a62e2ce72f6c4b9af7d1e9e68175e5351
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
Homepage: http://flex.sf.net/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y