How To Install libsyntax-perl on Ubuntu 18.04

In this tutorial we learn how to install libsyntax-perl on Ubuntu 18.04. libsyntax-perl is pragma for activating syntax extensions

Introduction

In this tutorial we learn how to install libsyntax-perl on Ubuntu 18.04.

What is libsyntax-perl

libsyntax-perl is:

syntax is a Perl pragma for activating community-provided syntax extensions. It is similar to, but much more extensible than, the “feature” pragma, since it can load third-party extensions as well.

Because of the extensible nature of this module, there are no standardised options. Please consult the documentation for specific syntax features to learn about possible configuration options. See the are packages that have names like: libsyntax-keyword-*-perl.

There are three methods to install libsyntax-perl 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 libsyntax-perl Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libsyntax-perl using apt-get by running the following command:

sudo apt-get -y install libsyntax-perl

Install libsyntax-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libsyntax-perl using apt by running the following command:

sudo apt -y install libsyntax-perl

Install libsyntax-perl 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 libsyntax-perl using aptitude by running the following command:

sudo aptitude -y install libsyntax-perl

How To Uninstall libsyntax-perl on Ubuntu 18.04

To uninstall only the libsyntax-perl package we can use the following command:

sudo apt-get remove libsyntax-perl

Uninstall libsyntax-perl And Its Dependencies

To uninstall libsyntax-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libsyntax-perl

Remove libsyntax-perl Configurations and Data

To remove libsyntax-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libsyntax-perl

Remove libsyntax-perl configuration, data, and all of its dependencies

We can use the following command to remove libsyntax-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libsyntax-perl

References

Summary

In this tutorial we learn how to install libsyntax-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.