How To Install php7.4-common on Ubuntu 20.04
Introduction
In this tutorial we learn how to install php7.4-common
on Ubuntu 20.04.
What is php7.4-common
php7.4-common is:
This package provides the documentation, examples and common module(s) for PHP.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. Task: lamp-server
Package: php7.4-common Architecture: amd64 Version: 7.4.3-4ubuntu1 Priority: optional Section: php Source: php7.4 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian PHP Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 7401 Provides: php-calendar, php-ctype, php-exif, php-ffi, php-fileinfo, php-ftp, php-iconv, php-pdo, php-phar, php-posix, php-shmop, php-sockets, php-sysvmsg, php-sysvsem, php-sysvshm, php-tokenizer, php7.4-calendar, php7.4-ctype, php7.4-exif, php7.4-ffi, php7.4-fileinfo, php7.4-ftp, php7.4-gettext, php7.4-iconv, php7.4-pdo, php7.4-phar, php7.4-posix, php7.4-shmop, php7.4-sockets, php7.4-sysvmsg, php7.4-sysvsem, php7.4-sysvshm, php7.4-tokenizer Depends: php-common (>= 1:73), ucf, libc6 (>= 2.27), libffi7 (>= 3.3~20180313), libssl1.1 (>= 1.1.0) Breaks: gforge-common (« 6), php7.0-curl (« 7.0.33-1~), php7.2-sodium (« 7.2.12~) Filename: pool/main/p/php7.4/php7.4-common_7.4.3-4ubuntu1_amd64.deb Size: 978952 MD5sum: e6b4b009cd07911d5746f191ec7c8fa4 SHA1: 8c4b645262516b5cdc21633ced8a94a0b77d7a70 SHA256: d8a661b80c545ae6985196daf726ae29a8de08bafd7be4cb4ec236ff63c3bd47 Homepage: http://www.php.net/ Description-en: documentation, examples and common module for PHP This package provides the documentation, examples and common module(s) for PHP.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. Task: lamp-server
There are three methods to install php7.4-common
on Ubuntu 20.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 php7.4-common Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install php7.4-common
using apt-get
by running the following command:
sudo apt-get -y install php7.4-common
Install php7.4-common Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install php7.4-common
using apt
by running the following command:
sudo apt -y install php7.4-common
Install php7.4-common 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 php7.4-common
using aptitude
by running the following command:
sudo aptitude -y install php7.4-common
How To Uninstall php7.4-common on Ubuntu 20.04
To uninstall only the php7.4-common
package we can use the following command:
sudo apt-get remove php7.4-common
Uninstall php7.4-common And Its Dependencies
To uninstall php7.4-common
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove php7.4-common
Remove php7.4-common Configurations and Data
To remove php7.4-common
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge php7.4-common
Remove php7.4-common configuration, data, and all of its dependencies
We can use the following command to remove php7.4-common
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge php7.4-common
References
Summary
In this tutorial we learn how to install php7.4-common
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.