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)?


Overview: This article describes the way to upgrade PHP 8.2 on SLES 15 SP4/SP5/SP6.


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.  

Step 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 :
root@gateway:~# zypper addrepo https://download.opensuse.org/repositories/devel:languages:php/SLE_15_SP6/devel:languages:php.repo root@gateway:~# zypper refresh

For  SLE 15 SP5  run the following as  root :
root@gateway:~# zypper addrepo https://download.opensuse.org/repositories/devel:languages:php/SLE_15_SP5/devel:languages:php.repo root@gateway:~# zypper refresh


For  SLE 15 SP4  run the following as  root :
root@gateway:~# zypper addrepo https://download.opensuse.org/repositories/devel:languages:php/SLE_15_SP4/devel:languages:php.repo root@gateway:~# zypper refresh

Step 2:  Install PHP 8.2 from the added repository: 

root@gateway:~# zypper install php8

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

root@gateway:~# php -v


Related Articles:

Upgrade PHP(RHEL).

Upgrade PHP(Debian).

Upgrade PHP(Ubuntu).

Upgrade Openssh.