I have installed CentOS long time ago. I remember that I have installed multiple PHP versions too.
Now, I need to know which versions of PHP are already installed on the system?
How can I find them?
You can use rpm -qa
command and use grep
to filter the PHP ones:
rpm -qa | grep php