How To Install compat-flex on Fedora 36
Introduction
In this tutorial we learn how to install compat-flex
on Fedora 36.
What is compat-flex
This is legacy version of flex, a program that generates scanners. Scanners are programs which can recognize lexical patterns in text. Flex takes pairs of regular expressions and C code as input and generates a C source file as output. The output file is compiled and linked with a library to produce an executable. The executable searches through its input for occurrences of the regular expressions. When a match is found, it executes the corresponding C code. Flex was designed to work with both Yacc and Bison, and is used by many programs as part of their build process. You should install flex if you are going to use your system for application development.
We can use yum
or dnf
to install compat-flex
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install compat-flex.
Install compat-flex on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install compat-flex
using dnf
by running the following command:
sudo dnf -y install compat-flex
Install compat-flex on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install compat-flex
using yum
by running the following command:
sudo yum -y install compat-flex
How To Uninstall compat-flex on Fedora 36
To uninstall only the compat-flex
package we can use the following command:
sudo dnf remove compat-flex
compat-flex Package Contents on Fedora 36
/usr/bin/flex-2.5.4a
/usr/bin/flex-2.5.4a++
/usr/include/flex-2.5.4a
/usr/include/flex-2.5.4a/FlexLexer.h
/usr/lib/.build-id
/usr/lib/.build-id/db
/usr/lib/.build-id/db/ceb690b012ca0ccbc5c7e8ebb5ab75261f9435
/usr/lib64/flex-2.5.4a
/usr/lib64/flex-2.5.4a/libfl.a
/usr/share/doc/compat-flex
/usr/share/doc/compat-flex/COPYING
/usr/share/doc/compat-flex/NEWS
/usr/share/doc/compat-flex/README
/usr/share/doc/compat-flex/README.fedora
/usr/share/info/flex-2.5.4a.info.gz
/usr/share/man/man1/flex-2.5.4a++.1.gz
/usr/share/man/man1/flex-2.5.4a.1.gz
References
Summary
In this tutorial we learn how to install compat-flex
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).