13

How do I get versions of apache modules on debian?

I can get loaded modules list by apache2ctl -M - but how do I get their version numbers?

Hurda
  • 133
  • 1
  • 1
  • 4

3 Answers3

11
$ strings /usr/lib/apache2/modules/mod_pagespeed.so \
    | grep "mod_pagespeed/[0-9]\.[0-9]"
mod_pagespeed/w.x.y.z

Find more at http://thinkinginsoftware.blogspot.com/2015/10/find-out-apache-module-version.html

Nestor Urquiza
  • 2,821
  • 28
  • 21
10
apt-cache show libapache2-mod-foobar | grep Version
fakeroot
  • 264
  • 1
  • 5
  • 1
    Note though that if you installed the module using `apxs` or some other method, this won't give you the installed version, but rather the version in the repositories. – mlissner Feb 15 '12 at 06:48
  • Is there a way to find in fedora-like OS? I'm using oracle linux – jimmymcheung Mar 12 '23 at 01:09
2

Did you try this?

apt-cache policy libapache2-mod-foobar
Umang
  • 5,196
  • 2
  • 25
  • 24