How To Install elpa-puppet-mode on Kali Linux

In this tutorial we learn how to install elpa-puppet-mode on Kali Linux. elpa-puppet-mode is Emacs major mode for Puppet manifests

Introduction

In this tutorial we learn how to install elpa-puppet-mode on Kali Linux.

What is elpa-puppet-mode

elpa-puppet-mode is:

Puppet Mode is a major mode for GNU Emacs that adds support for ??3 of the Puppet language. Puppet is a system provisioning, configuration, and automation tool by Puppetlabs Inc, and its manifests are files that end in “.pp”.

Features:

  • Syntax highlighting.
  • Indentation and alignment of expressions and statements.
  • Tag navigation with imenu.
  • Manual validation and linting of manifests (see Flycheck for on-the-fly validation and linting).
  • Integration with Puppet Debugger.

There are three methods to install elpa-puppet-mode on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install elpa-puppet-mode Using apt-get

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

sudo apt-get update

After updating apt database, We can install elpa-puppet-mode using apt-get by running the following command:

sudo apt-get -y install elpa-puppet-mode

Install elpa-puppet-mode Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install elpa-puppet-mode using apt by running the following command:

sudo apt -y install elpa-puppet-mode

Install elpa-puppet-mode Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install elpa-puppet-mode using aptitude by running the following command:

sudo aptitude -y install elpa-puppet-mode

How To Uninstall elpa-puppet-mode on Kali Linux

To uninstall only the elpa-puppet-mode package we can use the following command:

sudo apt-get remove elpa-puppet-mode

Uninstall elpa-puppet-mode And Its Dependencies

To uninstall elpa-puppet-mode and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove elpa-puppet-mode

Remove elpa-puppet-mode Configurations and Data

To remove elpa-puppet-mode configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge elpa-puppet-mode

Remove elpa-puppet-mode configuration, data, and all of its dependencies

We can use the following command to remove elpa-puppet-mode configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge elpa-puppet-mode

Dependencies

elpa-puppet-mode have the following dependencies:

References

Summary

In this tutorial we learn how to install elpa-puppet-mode package on Kali Linux using different package management tools: apt, apt-get and aptitude.