I remember seeing an article at one time on how to do this, but now I can't find it. I have seen other install directions. I want to make sure I can easily update it via apt.
There is no Debian
mod_pagespeed package yet, it seems to be quite a difficult feat.
That said, Google apparently provides 32bit and 64bit
.deb archives via
developers.google.com, which you can install with, say,
# dpkg -i mod-pagespeed-beta_current_amd64.deb
but which are not supported by the Debian project.
However, Google does seem to provide an
apt repository,(1) and installing the binary mentioned above adds this line to
/etc/apt/sources.list.d/mod-pagespeed.list, which probably gets you updates via
apt and the like:
deb http://dl.google.com/linux/mod-pagespeed/deb/ stable main
(1) I couldn't find any official mention of this repository (only this German (sorry!) blog post), so I would not count on it. But anyway, third-party
debs and repos are always to be taken with a pinch of salt.
Going off of sr_'s answer, here's how to do it in a shell.
Warning: The filename in the second line is not
/etc/apt/sources.list. Please scroll to the right if it's cut off.
sudo -i echo 'deb http://dl.google.com/linux/mod-pagespeed/deb/ stable main'> /etc/apt/sources.list.d/mod-pagespeed.list apt-get update apt-get install mod-pagespeed-stable exit
There's also a
mod-pagespeed-beta, if you'd like to live on the edge.