How To Install php-psr-simple-cache on Ubuntu 22.04
Introduction
In this tutorial we learn how to install php-psr-simple-cache
on Ubuntu 22.04.
What is php-psr-simple-cache
php-psr-simple-cache is:
PHP FIG Simple Cache PSR holds all interfaces related to PSR-16.
Note that this is not a cache implementation of its own. It is merely an interface that describes a cache implementation. See the specification for more details.
You can find implementations of the specification by looking for packages providing the php-psr-simple-cache-implementation virtual package.
There are three methods to install php-psr-simple-cache
on Ubuntu 22.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-psr-simple-cache 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-psr-simple-cache
using apt-get
by running the following command:
sudo apt-get -y install php-psr-simple-cache
Install php-psr-simple-cache Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install php-psr-simple-cache
using apt
by running the following command:
sudo apt -y install php-psr-simple-cache
Install php-psr-simple-cache 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-psr-simple-cache
using aptitude
by running the following command:
sudo aptitude -y install php-psr-simple-cache
How To Uninstall php-psr-simple-cache on Ubuntu 22.04
To uninstall only the php-psr-simple-cache
package we can use the following command:
sudo apt-get remove php-psr-simple-cache
Uninstall php-psr-simple-cache And Its Dependencies
To uninstall php-psr-simple-cache
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove php-psr-simple-cache
Remove php-psr-simple-cache Configurations and Data
To remove php-psr-simple-cache
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge php-psr-simple-cache
Remove php-psr-simple-cache configuration, data, and all of its dependencies
We can use the following command to remove php-psr-simple-cache
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge php-psr-simple-cache
References
Summary
In this tutorial we learn how to install php-psr-simple-cache
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.