How To Install wpp on Ubuntu 18.04
Introduction
In this tutorial we learn how to install wpp on Ubuntu 18.04.
What is wpp
wpp is:
WPP is a small Perl script that allows preprocessing of HTML files. You can define variables, which are abbreviations for longer constructs, and include common HTML fragments. It’s useful for giving a uniform layout to different HTML pages. It can be used in cgi-bin programs for automatic generation of pages. With less HTML code inside them you can make more flexible and readable scripts.
WPP provides four separate facilities that you can use as you see fit: inclusion of text/HTML fragments, variable expansion, conditional generation, macro expansion.
Homepage: http://wpp.sourceforge.net/
There are three methods to install wpp 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 wpp Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install wpp using apt-get by running the following command:
sudo apt-get -y install wpp
Install wpp Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install wpp using apt by running the following command:
sudo apt -y install wpp
Install wpp 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 wpp using aptitude by running the following command:
sudo aptitude -y install wpp
How To Uninstall wpp on Ubuntu 18.04
To uninstall only the wpp package we can use the following command:
sudo apt-get remove wpp
Uninstall wpp And Its Dependencies
To uninstall wpp and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove wpp
Remove wpp Configurations and Data
To remove wpp configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge wpp
Remove wpp configuration, data, and all of its dependencies
We can use the following command to remove wpp configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge wpp
References
Summary
In this tutorial we learn how to install wpp package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.