Michael Curtis's picture

Hi,

 

I have am running Debian v7 and Apache 2.2.22. I need to get this upgraded to the latest version 2.2, but when I do apt-get update && apt-get dist-upgrade all I see is PHP updates. Why doesn't Apache show up and how do I upgrade 2.2.31 which I believe is the latest version.

Any help would be most appreciated.

Best wishes

Michael

 

Forum: 
Tags: 
Jeremy Davis's picture

The latest version of Apache in Debian 7 (aka Wheezy) is 2.2.22 (specifically 2.2.22-13+deb7u4). As a general rule Debian won't update the actual version; they just backport the security fixes and bump the last digit (after the u). So the Debian 7 Apache version prior to this one was 2.2.22-13+deb7u3; and the next one will be 2.2.22-13+deb7u5.

FWIW the next version of TurnKey (v14.0 - based on Jessie - aka Debian 8) has Apache 2.4.10-10...

Michael Curtis's picture

Hi Jeremy,

Thanks for the feedback. I did a 

apt-cache showpkg apache2

Part of the output showed me this. Does it mean it is already running u5?

Dependencies: 

2.2.22-13+deb7u5 - apache2-mpm-worker (21 2.2.22-13+deb7u5) apache2-mpm-prefork (21 2.2.22-13+deb7u5) apache2-mpm-event (21 2.2.22-13+deb7u5) apache2-mpm-itk (5 2.2.22-13+deb7u5) apache2.2-common (5 2.2.22-13+deb7u5) 

2.2.22-13+deb7u4 - apache2-mpm-worker (21 2.2.22-13+deb7u4) apache2-mpm-prefork (21 2.2.22-13+deb7u4) apache2-mpm-event (21 2.2.22-13+deb7u4) apache2-mpm-itk (5 2.2.22-13+deb7u4) apache2.2-common (5 2.2.22-13+deb7u4) 

Provides: 

2.2.22-13+deb7u5 - 

2.2.22-13+deb7u4 - 

Best wishes

Michael

 

Jeremy Davis's picture

'apt-cache showpkg' can be useful but IMO policy will give you info that is more directly relevant to what you want to know.

So on my Wheezy desktop system this is what I get:

$ apt-cache policy apache2
apache2:
  Installed: (none)
  Candidate: 2.2.22-13+deb7u5
  Version table:
     2.2.22-13+deb7u5 0
        500 http://security.debian.org/ wheezy/updates/main amd64 Packages
     2.2.22-13+deb7u4 0
        500 http://http.debian.net/debian/ wheezy/main amd64 Packages
This shows that I don't have Apache installed. If I did, then the version installed would show after "Installed:" - instead of "(none)". If I was going to I would get 2.2.22-13+deb7u5 (i.e. the "Candidate:"). Then it shows all the latest versions available and from which repo. So 2.2.22-13+deb7u5 comes from from the Debian security repo.

Also keep in mind that this info relies on the local package database so it's good practice to update that too. So unless you've run apt-get update lately this is probably the way to go:

apt-get update && apt-cache policy apache2
Michael Curtis's picture

Hi Jeremy,

That is perfect. Thank you for your help.

I'm running - 

apt-cache policy apache2

apache2:

  Installed: 2.2.22-13+deb7u5

  Candidate: 2.2.22-13+deb7u5

  Version table:

 *** 2.2.22-13+deb7u5 0

        500 http://security.debian.org/ wheezy/updates/main amd64 Packages

        100 /var/lib/dpkg/status

     2.2.22-13+deb7u4 0

        500 http://cdn.debian.net/debian/ wheezy/main amd64 Packages

Add new comment