Upgrading PHP from 8.2

I use php 8.2 and want to upgrade to 8.3 or 8.4

I installed 8.2 with:

# dnf module reset php
# dnf module install php:remi-8.2
# php -v


[php install](https://www.robkalmeijer.nl/techniek/computer/servers/http/apache/php.html)

Can I use this by changing 8.2 in 8.3 or 8.4


If you have PHP 8.2 installed from remi, then it’s easiest to just do:

dnf module switch-to php:remi-8.4

and it will upgrade from 8.2 to 8.4.

1 Like

Upgrade was a peace of cake.

Have it added to my manual page on my webside.

Thanks

For memory: Remi's RPM repository

Or PHP: Downloads

1 Like

Added to my page:
PHP

Rob.

Does this also work if I have 8.0 installed?

You can try. It is if you used remi for the first install.

The dnf module switch-to does:

Switch to or enable a module stream, change versions of installed packages to versions provided by the new stream, and remove packages from the old stream that are no longer available.

If you have PHP 8.0 installed as a stream of module php, then switch to php:remi-8.4
basically uninstall the packages from the 8.0 stream and (re)installs the 8.4 versions (if they exists).
Two different repos can offer streams for same module, but nothing can naturally enforce that both repos follow same conventions for package names, etc.

I just checked the command it it worked like a charm. See the result:

[root@server ~]# php -v
PHP 8.4.19 (cli) (built: Mar 10 2026 15:51:04) (NTS gcc x86_64)
Copyright (c) The PHP Group
Built by Remi’s RPM repository https://rpms.remirepo.net/ #StandWithUkraine
Zend Engine v4.4.19, Copyright (c) Zend Technologies
with Zend OPcache v8.4.19, Copyright (c), by Zend Technologies
[root@server ~]#