I have PHP installed on a server and I'd like to know which RPM it was build off of (webtatic or remi). How do I find this out.Also, how would I find out if and when that changed?
How do I find out which RPM was used to install PHP?
centos;rhel;rpm
You can use the rpm command to find out information about a particular package:$ rpm -qi phpName        : php                          Relocations: (not relocatable)Version     : 5.3.8                             Vendor: Fedora ProjectRelease     : 3.fc14                        Build Date: Wed 28 Sep 2011 01:40:37 PM EDTInstall Date: Wed 04 Jul 2012 12:42:03 PM EDT      Build Host: x86-12.phx2.fedoraproject.orgGroup       : Development/Languages         Source RPM: php-5.3.8-3.fc14.src.rpmSize        : 3773261                          License: PHPSignature   : RSA/SHA256, Wed 28 Sep 2011 10:20:06 AM EDT, Key ID 421caddb97a1071fPackager    : Fedora ProjectURL         : http://www.php.net/Summary     : PHP scripting language for creating dynamic web sitesDescription :PHP is an HTML-embedded scripting language. PHP attempts to make iteasy for developers to write dynamically generated web pages. PHP alsooffers built-in database integration for several commercial andnon-commercial database management systems, so writing adatabase-enabled webpage with PHP is fairly simple. The most commonuse of PHP coding is probably as a replacement for CGI scripts.The php package contains the module which adds support for the PHPlanguage to Apache HTTP Server.The line you're interested in is Source RPM. The build date is also in this information.Alternative executableIf you happen not to know the name of the package that a given executable is provided by, you can back into this information too:$ type -a phpphp is /usr/bin/php$ rpm -qf /usr/bin/phpphp-cli-5.3.8-3.fc14.x86_64