Skip to Content

Upgrade to php version 8.2 in OpenSUSE 15

record ssh session

openSUSE is a free and open-source Linux distribution developed by the openSUSE project. It is offered in two main variations: Tumbleweed, an upstream rolling release distribution, and Leap, a stable release distribution which is sourced from SUSE Linux Enterprise


       HOW TO UPGRADE PHP TO 8.2 IN OpenSUSE 15


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

root@gateway:~# sudo zypper addrepo -f https://download.opensuse.org/repositories/devel:/languages:/php/openSUSE_Leap_15.4/ PHP-OpenSUSE

root@gateway:~# sudo zypper refresh

Step 2.  Install PHP 8.2 from the added repository: Adjust the package name accordingly based on what's available in the repository.

root@gateway:~# sudo zypper install php8-8.2.15-lp154.150.1.x86_64

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

root@gateway:~# php -v