Search for installed versions of Apache modules in CentOS / RHEL

I found a similar question about this, but was targeting Debian here .

However, since I do not have apt-cache, this does not help me. Duration:

httpd -M 

Gives me a list of all installed modules, but not their version. My colleague just pointed out that you can use:

  yum info mod_dav_svn.x86_64 

This returns the installed version and the version available through Yum, however, if I use httpd -M, it lists names like:

mod_proxy_http.so

Is there an easy way to map the file name of installed modules (i.e. x86_64 i386) so that I can check each module, or even better, does anyone know a way to display this information for all modules at the same time?

+6
source share
3 answers

It is not clear to me that you definitely want to know or what you will achieve, but for me it seems something like this:

cd / usr / lib / httpd / modules /
* .so file

+7
source

You can use yum to get the apache modules version:

 yum info mod_fcgid 
+3
source

List of installed Apache modules:

 yum list installed mod_* 

or

 rpm -qa mod_* 

The formatted output of "PackageName-Version-Release.Arch":

 yum list installed mod_* | awk '/mod_.*/ { split($1,a,"."); print a[1] "-" $2 "." a[2] }' 

or

 rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n" mod_* 
-1
source

Source: https://habr.com/ru/post/914617/


All Articles