Upgrading php7.2 to php7.4 in Ubuntu 18.04LTS

In my thoughts it’s easier to just change the required PHP version in e.g. remi repo, remove PHP 7.2 and install php.

For Centos for example

No further adjustments needed.