How To Install php-symfony-web-link on Ubuntu 18.04

In this tutorial we learn how to install php-symfony-web-link on Ubuntu 18.04. php-symfony-web-link is manage links between resources

Introduction

In this tutorial we learn how to install php-symfony-web-link on Ubuntu 18.04.

php-symfony-web-link is:

The Symfony WebLink Component manages links between resources. It is particularly useful to advise clients to preload and prefetch documents through HTTP and HTTP/2 pushes.

This component implements the HTML5’s Links, Preload and Resource Hints W3C’s specifications. It can also be used with extensions defined in the HTML5 link type extensions wiki.

Symfony is a PHP framework, a set of tools and a development methodology.

There are three methods to install php-symfony-web-link 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.

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

sudo apt-get update

After updating apt database, We can install php-symfony-web-link using apt-get by running the following command:

sudo apt-get -y install php-symfony-web-link

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install php-symfony-web-link using apt by running the following command:

sudo apt -y install php-symfony-web-link

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-symfony-web-link using aptitude by running the following command:

sudo aptitude -y install php-symfony-web-link

To uninstall only the php-symfony-web-link package we can use the following command:

sudo apt-get remove php-symfony-web-link

To uninstall php-symfony-web-link and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove php-symfony-web-link

To remove php-symfony-web-link configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge php-symfony-web-link

We can use the following command to remove php-symfony-web-link configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge php-symfony-web-link

References

Summary

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