Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

2 Answers 2

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, 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

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.