How To Install php-nette on Ubuntu 18.04
Introduction
In this tutorial we learn how to install php-nette
on Ubuntu 18.04.
What is php-nette
php-nette is:
Nette Framework is a powerful, component-based and event-driven framework for creating web applications and services in PHP. Nette Framework is designed with simplicity, speed and flexibility in mind. It allows developers to easy built better websites.
Nette Framework focuses on security and performance and is definitely one of the safest and fastest PHP frameworks. Nette Framework support the latest technologies and approaches like AJAX, HTML5, SEO, DRY, KISS, MVC, etc.
There are three methods to install php-nette
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 php-nette Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install php-nette
using apt-get
by running the following command:
sudo apt-get -y install php-nette
Install php-nette Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install php-nette
using apt
by running the following command:
sudo apt -y install php-nette
Install php-nette 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 php-nette
using aptitude
by running the following command:
sudo aptitude -y install php-nette
How To Uninstall php-nette on Ubuntu 18.04
To uninstall only the php-nette
package we can use the following command:
sudo apt-get remove php-nette
Uninstall php-nette And Its Dependencies
To uninstall php-nette
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove php-nette
Remove php-nette Configurations and Data
To remove php-nette
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge php-nette
Remove php-nette configuration, data, and all of its dependencies
We can use the following command to remove php-nette
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge php-nette
References
Summary
In this tutorial we learn how to install php-nette
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.