CentOS 7 PHP version7.2 official repository
CentOS 7 PHP version7.2 official
repository
Command to install the EPEL
repository configuration package:
yum install
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Command to install the Remi
repository configuration package:
yum install
http://rpms.remirepo.net/enterprise/remi-release-7.rpm
Command to install the yum-utils
package (for the yum-config-manager command):
yum install yum-utils
If you want a single version which means
replacing base packages from the distribution
Packages have the same name than the
base repository, ie php-*
Some common dependencies are
available in remi-safe repository, which is enabled by default
PHP version 7.2 packages are
available for CentOS 7 in remi-php72 repository
If the priorities plugin is enabled,
ensure remi-php72 have higher priority (a lower value) than base and updates
Command to enable the repository:
yum-config-manager --enable remi-php72
Command to upgrade (the repository
only provides PHP):
yum update
Command to install additional packages:
yum install php-xxx
Command to install testing packages:
yum --enablerepo=remi-php72-test install
php-xxx
Command to check the installed
version and available extensions:
php --version
php --modules
Comments