How To Install smarty-validate on Ubuntu 20.04
Introduction
In this tutorial we learn how to install smarty-validate
on Ubuntu 20.04.
What is smarty-validate
smarty-validate is:
smarty-validate is a Smarty plugin that makes it easy to handle server-side form validation in PHP pages using the popular PHP templating engine.
There are three methods to install smarty-validate
on Ubuntu 20.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 smarty-validate Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install smarty-validate
using apt-get
by running the following command:
sudo apt-get -y install smarty-validate
Install smarty-validate Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install smarty-validate
using apt
by running the following command:
sudo apt -y install smarty-validate
Install smarty-validate 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 smarty-validate
using aptitude
by running the following command:
sudo aptitude -y install smarty-validate
How To Uninstall smarty-validate on Ubuntu 20.04
To uninstall only the smarty-validate
package we can use the following command:
sudo apt-get remove smarty-validate
Uninstall smarty-validate And Its Dependencies
To uninstall smarty-validate
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove smarty-validate
Remove smarty-validate Configurations and Data
To remove smarty-validate
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge smarty-validate
Remove smarty-validate configuration, data, and all of its dependencies
We can use the following command to remove smarty-validate
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge smarty-validate
References
Summary
In this tutorial we learn how to install smarty-validate
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.