How To Install php-json-schema on Kali Linux
Introduction
In this tutorial we learn how to install php-json-schema
on Kali Linux.
What is php-json-schema
php-json-schema is:
JSON Schema defines the media type “application/schema+json”, a JSON based format for defining the structure of JSON data. JSON Schema provides a contract for what JSON data is required for a given application and how to interact with it. JSON Schema is intended to define validation, documentation, hyperlink navigation, and interaction control of JSON data.
This package provides a PHP library for validating JSON Structures against a given Schema.
There are three methods to install php-json-schema
on Kali Linux. 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-json-schema 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-json-schema
using apt-get
by running the following command:
sudo apt-get -y install php-json-schema
Install php-json-schema Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install php-json-schema
using apt
by running the following command:
sudo apt -y install php-json-schema
Install php-json-schema Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install php-json-schema
using aptitude
by running the following command:
sudo aptitude -y install php-json-schema
How To Uninstall php-json-schema on Kali Linux
To uninstall only the php-json-schema
package we can use the following command:
sudo apt-get remove php-json-schema
Uninstall php-json-schema And Its Dependencies
To uninstall php-json-schema
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove php-json-schema
Remove php-json-schema Configurations and Data
To remove php-json-schema
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge php-json-schema
Remove php-json-schema configuration, data, and all of its dependencies
We can use the following command to remove php-json-schema
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge php-json-schema
Dependencies
php-json-schema have the following dependencies:
References
Summary
In this tutorial we learn how to install php-json-schema
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.