Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 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.

share|improve this question

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.

PS This might be terribly slow.

share|improve this answer
They also import their key as part of the post install script. You can unpack the deb and get the key out of it. Without adding the key, the packages will throw signing warnings. – chmac May 4 '15 at 16:52

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

There's also a mod-pagespeed-beta, if you'd like to live on the edge.

share|improve this answer

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.