How To Install cl-lexer on Ubuntu 18.04
Introduction
In this tutorial we learn how to install cl-lexer
on Ubuntu 18.04.
What is cl-lexer
cl-lexer is:
Implements a lexical-analyzer-generator called DEFLEXER, built on top of REGEX and CLAWK.
There are three methods to install cl-lexer
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install cl-lexer Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install cl-lexer
using apt-get
by running the following command:
sudo apt-get -y install cl-lexer
Install cl-lexer Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install cl-lexer
using apt
by running the following command:
sudo apt -y install cl-lexer
Install cl-lexer Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install cl-lexer
using aptitude
by running the following command:
sudo aptitude -y install cl-lexer
How To Uninstall cl-lexer on Ubuntu 18.04
To uninstall only the cl-lexer
package we can use the following command:
sudo apt-get remove cl-lexer
Uninstall cl-lexer And Its Dependencies
To uninstall cl-lexer
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove cl-lexer
Remove cl-lexer Configurations and Data
To remove cl-lexer
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge cl-lexer
Remove cl-lexer configuration, data, and all of its dependencies
We can use the following command to remove cl-lexer
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge cl-lexer
References
Summary
In this tutorial we learn how to install cl-lexer
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.