Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am aware that ubuntu locks releases of packages and applies bug fixes. Taking the example of php, php -v may report something like the following:


Here we have php versions 5.3.10 with security fixes applied by Ubuntu contributors with an internal version number of 1ubuntu3.4

First question is am I correct so far?

Now when I do apache2 -v I see the following:

Server version: Apache/2.2.22 (Ubuntu)

Now I know I have the Apache release 2.2.22 but it doesnt seem to tell me what the internal ubuntu version number is. In reference to another question: How do I apply a security update to apache I need to be able to properly identify which ubuntu patch is applied to confirm if a security fix has been applied.

Typing dpkg -l apache2 starts to tell me this but seems to get cut off:

ii apache2 2.2.22-1ubuntu Apache HTTP Server metapackage

How can i get this info?

share|improve this question

Never mind me just worked this out: used a pipe and a grep command:

dpkg -l apache2 | grep 2.22

May help someone else

share|improve this answer
Mods please feel free to delete if you feel this is common knowledge amongst most competent ubuntu users – WebweaverD Aug 23 '13 at 13:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.