Monday, May 18, 2020

CentOS 8 upgrade php version

List all supported php ver for installation using dnf command.
[root@cent8 ~]# dnf module list php
Last metadata expiration check: 0:03:17 ago on Mon 11 May 2020 10:23:49 AM IST.
CentOS-8 - AppStream
Name    Stream        Profiles                      Summary                 
php     7.2 [d][e]    common [d], devel, minimal    PHP scripting language
php     7.3           common, devel, minimal        PHP scripting language                       

enable php 7.3 for upgrade / installaiton
dnf module enable php:7.3

verify that php 7.3 is enabled for upgrade
[root@cent8 ~]# dnf module list php
Last metadata expiration check: 0:08:58 ago on Mon 11 May 2020 10:23:49 AM IST.
CentOS-8 - AppStream
Name     Stream      Profiles                      Summary                  
php      7.2 [d]     common [d], devel, minimal    PHP scripting language                          
php      7.3 [e]     common, devel, minimal        PHP scripting language                          

upgrade packages
dnf update

No comments:

Post a Comment