< Home - < Back

flex


Information about the package, flex, which is shipped with common Linux distributions. The flex package is designed for, A tool for creating scanners (text pattern recognizers).


Package Name:

flex

Summary:

A tool for creating scanners (text pattern recognizers)

Description:

The flex program 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.

Architecture:

x86_64

Version:

2.5.35

Release:

9.el6

Size:

719 k

Repository:

installed

From Repository:

base

Licence:

BSD



Handy Yum Commands for flex


Control the flex package with the following handy commands outlined below.


Command

Description of Command

yum install flex

This command will install flex on the server.

yum remove flex

This command will un-install flex on the server. When you run this command, you will be asked if you are sure that you want to remove flex, so you have to manually confirm that you want to do this.

yum -y remove flex

This command will un-install flex on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove flex when using the -y flag.

yum update flex

This command will update flex to the latest version. When you run this command, you will be asked if you are sure that you want to remove flex, so you have to manually confirm that you want to do this.

yum -y update flex

This command will update flex to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove flex when using the -y flag.

yum info flex

This command will show you core information about the flex package.

yum deplist flex

This command will show you the dependencies for flex. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.

yum check-update flex

This command will check if there is an update waiting on flex. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.