Introduction
In this tutorial we learn how to install antlr-doc
on Ubuntu 22.04.
What is antlr-doc
antlr-doc is:
This package contains the documentation and examples for antlr.
ANTLR stands for ANother Tool for Language Recognition,
(formerly PCCTS). It is a language tool that provides a framework
for constructing recognizers, compilers, and translators from
grammatical descriptions containing C++ or Java actions
[You can use PCCTS 1.xx to generate C-based parsers].
See antlr package for a complete description
There are three methods to install antlr-doc
on Ubuntu 22.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 antlr-doc Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install antlr-doc
using apt-get
by running the following command:
sudo apt-get -y install antlr-doc
Install antlr-doc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install antlr-doc
using apt
by running the following command:
sudo apt -y install antlr-doc
Install antlr-doc 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 antlr-doc
using aptitude
by running the following command:
sudo aptitude -y install antlr-doc
How To Uninstall antlr-doc on Ubuntu 22.04
To uninstall only the antlr-doc
package we can use the following command:
sudo apt-get remove antlr-doc
Uninstall antlr-doc And Its Dependencies
To uninstall antlr-doc
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove antlr-doc
Remove antlr-doc Configurations and Data
To remove antlr-doc
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge antlr-doc
Remove antlr-doc configuration, data, and all of its dependencies
We can use the following command to remove antlr-doc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge antlr-doc
References
Summary
In this tutorial we learn how to install antlr-doc
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.