Skip to content

Instantly share code, notes, and snippets.

@tkachev-o
Last active April 5, 2023 10:42
Show Gist options
  • Save tkachev-o/da9eed64a6de87fa22da6cbaaf9728bb to your computer and use it in GitHub Desktop.
Save tkachev-o/da9eed64a6de87fa22da6cbaaf9728bb to your computer and use it in GitHub Desktop.

Readme apache/incubator-pagespeed-ngx#1760

us@sr:# apt-get install build-essential zlib1g-dev libpcre3 libpcre3-dev unzip uuid-dev libssl-dev
us@sr:# apt-mark hold nginx

PREVENT CHANGES FOR A PACKAGE

   hold
       hold is used to mark a package as held back, which will prevent the package from being
       automatically installed, upgraded or removed.
       
   unhold
       unhold is used to cancel a previously set hold on a package to allow all actions
       again.
       
   showhold
       showhold is used to print a list of packages on hold in the same way as for the other
       show commands.
#!/bin/sh
NGINX_VERSION="1.23.4"
PSOL="jammy"
mkdir -p /opt/build-pagespeed
cd /opt/build-pagespeed
wget https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
wget http://www.tiredofit.nl/psol-${PSOL}.tar.xz
git clone --depth=1 https://github.com/apache/incubator-pagespeed-ngx.git
tar xvf psol-${PSOL}.tar.xz
mv psol incubator-pagespeed-ngx
tar zxvf nginx-${NGINX_VERSION}.tar.gz
cd nginx-${NGINX_VERSION}
./configure --with-compat --add-dynamic-module=../incubator-pagespeed-ngx
make modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment