Find list of all installed php versions in CentOS

centos
php
rpm
Category Software and digital electronics / IT
2024-03-14 03:40

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?

Answered by robin
2024-07-14 03:49

You can use rpm -qa command and use grep to filter the PHP ones:

rpm -qa | grep php
×

Login

No account?
Terms of use
Forgot password?