Skip to Content

Upgrade to php version 8.2 in SUSE Linux Enterprise Server 15

 

  HOW TO UPGRADE PHP TO 8.2 IN SUSE Linux Enterprise 15(SLES)

SUSE Linux Enterprise Server  (SLES) is a Linux-based server operating system created and maintained by the German-based organization, SUSE. It is part of the enterprise product family and is designed for server environments known for its stability and comprehensive support for enterprise workloads.  

1.  Add PHP Repository for PHP 8.2 packages and refreshes the package manager's data.
    Run the following command 

For  SLE 15 SP6  run the following as  root :

zypper addrepo https://download.opensuse.org/repositories/devel:languages:php/SLE_15_SP6/devel:languages:php.repo zypper refresh



For  SLE 15 SP5  run the following as  root :


zypper addrepo https://download.opensuse.org/repositories/devel:languages:php/SLE_15_SP5/devel:languages:php.repo zypper refresh


For  SLE 15 SP4  run the following as  root :

zypper addrepo https://download.opensuse.org/repositories/devel:languages:php/SLE_15_SP4/devel:languages:php.repo zypper refresh
 

2.  Install PHP 8.2 from the added repository: 

root@gateway:~# zypper install php8

3. Check the PHP Version. This should display the version of PHP you installed.

root@gateway:~# php -v