How To Install kdevelop-php on Ubuntu 18.04

In this tutorial we learn how to install kdevelop-php on Ubuntu 18.04. kdevelop-php is PHP plugin for KDevelop

Introduction

In this tutorial we learn how to install kdevelop-php on Ubuntu 18.04.

What is kdevelop-php

kdevelop-php is:

KDevelop is an easy to use integrated development environment for KDE. It supports a wide range of programming languages and features project management, an advanced editor, a class browser and an integrated debugger.

This package contains the PHP language support plugin.

There are three methods to install kdevelop-php 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 kdevelop-php Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install kdevelop-php

Install kdevelop-php Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install kdevelop-php

Install kdevelop-php 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 kdevelop-php using aptitude by running the following command:

sudo aptitude -y install kdevelop-php

How To Uninstall kdevelop-php on Ubuntu 18.04

To uninstall only the kdevelop-php package we can use the following command:

sudo apt-get remove kdevelop-php

Uninstall kdevelop-php And Its Dependencies

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

sudo apt-get -y autoremove kdevelop-php

Remove kdevelop-php Configurations and Data

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

sudo apt-get -y purge kdevelop-php

Remove kdevelop-php configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge kdevelop-php

References

Summary

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