Hi. I've found inconstancy between output of repoquery and rpm. I was looking forward towards apache php 5.4 module which must provided by some package SCL (can someone tell me?). rpm -qf /etc/httpd/modules/mod_proxy.so httpd-2.2.15-29.el6.centos.x86_64 repoquery -qf /etc/httpd/modules/mod_proxy.so so repoquery results in no output yum list installed httpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * c6-media: Installed Packages httpd.x86_64 2.2.15-29.el6.centos @c6-media repoquery -qa httpd httpd-0:2.2.15-29.el6.centos.x86_64 No wonder libphp5.so results in no output.
On Tue, Sep 16, 2014 at 10:16:37AM +0530, dE wrote:> > Hi. > > I've found inconstancy between output of repoquery and rpm. I was > looking forward towards apache php 5.4 module which must provided by > some package SCL (can someone tell me?). > > rpm -qf /etc/httpd/modules/mod_proxy.so > httpd-2.2.15-29.el6.centos.x86_64 > repoquery -qf /etc/httpd/modules/mod_proxy.so > > so repoquery results in no output > > yum list installed httpd > Loaded plugins: fastestmirror > Loading mirror speeds from cached hostfile > * c6-media: > Installed Packages > httpd.x86_64 2.2.15-29.el6.centos @c6-media > > repoquery -qa httpd > httpd-0:2.2.15-29.el6.centos.x86_64 > > No wonder libphp5.so results in no output.The 'httpd' package actually contains the mod_proxy.so as /usr/lib64/httpd/modules/mod_proxy.so. Running 'repoquery -f /usr/lib64/httpd/modules/mod_proxy.so' will generate the correct response. RPM, on the other hand, has the benefit of having a local filesystem with the actual files installed. One of the first things that the 'rpm' command does is stat() the path /etc/httpd/modules, discover it's a symlink, and then run the actual path /usr/lib64/httpd/modules/mod_proxy.so through the RPM database. The command is going to pass the 'real' location (as best it can find) for any query with file paths. 'repoquery' doesn't have the benefit of having the package installed, so it can't perform this local lookup. It has to rely only on what the package manifest lists. -- Jonathan Billings <billings at negate.org>
On 09/15/2014 11:46 PM, dE wrote:> Hi. > > I've found inconstancy between output of repoquery and rpm. I was > looking forward towards apache php 5.4 module which must provided by > some package SCL (can someone tell me?).Software collections are provided in a different directory. querying for /etc/whatever or /usr/whatever won't work, as scls live under /opt/rh For 6, the package is httpd24.x86_64, php54-php.x86_64 etc are the scl packages. To use them, you'd need to install the centos-release-SCL.x86_64 which enables the repositories. -- Jim Perrin The CentOS Project | http://www.centos.org twitter: @BitIntegrity | GPG Key: FA09AD77
Reasonably Related Threads
- Race Condition In PHP Session Handler
- SELinux is preventing httpd from loading /usr/local/apache/modules/libphp5.so
- httpd stopped working under SELinux so I had to turn SELinux off. libxml2.so.2: failed to map segment from shared object: Permission denied
- Unable to read anything from request.remote_ip
- apache mysterious 404 error