How to always have the latest nginx version in Ubuntu/Debian

mike mike503 at
Tue Mar 24 00:56:50 MSK 2009

On Mon, Mar 23, 2009 at 2:48 PM, Merlin <merlin at> wrote:
> Mark,
> Why not just use apt-get source to get the source package of nginx; wget the
> latest nginx; copy the debian/ directory from the source package into the
> new nginx directory; edit the (dch) changelog, control file, etc; rebuild
> the package (debuild -rfakeroot), and install with dpkg?

I actually just do this. the .deb installs but issues warnings but it
does work well enough. but I do want to learn how to properly roll a
.deb someday :)

root at local:/usr/src/build# cat build-nginx

rm -rf nginx-${VER}
wget -c${VER}.tar.gz
tar xvfz nginx-${VER}.tar.gz
cd nginx-${VER}

./configure --conf-path=/etc/nginx/nginx.conf --prefix=/usr
--user=www-data --group=www-data \
--error-log-path=/var/log/nginx/error.log --pid-path=/var/run/ \
--lock-path=/var/lock/nginx.lock  --http-log-path=/var/log/nginx/access.log \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-http_stub_status_module \
--with-openssl=/usr/lib --with-md5=/usr/lib --with-http_gzip_static_module \
--without-mail_pop3_module --without-mail_smtp_module
--without-mail_imap_module \
--with-http_flv_module --with-http_ssl_module --with-http_dav_module
--with-http_realip_module --with-http_xslt_module \
echo "\tcp /usr/src/build/nginx.initd /etc/init.d/nginx" >>objs/Makefile
echo "\tcp /usr/src/build/nginx.1.manpage /usr/local/man/man1/nginx.1"
echo "\tcp /usr/src/build/nginx.logrotate /etc/logrotate.d/nginx"
echo "\tupdate-rc.d -f nginx remove" >>objs/Makefile
echo "\tupdate-rc.d -f nginx defaults" >>objs/Makefile
mkdir -p doc-pak
mkdir -p /etc/nginx
checkinstall --pkgname="custom-nginx" --pkgversion="$VER"
--provides="nginx" --requires="libc6, libpcre3, zlib1g" --strip=yes
--stripso=yes --backup=no -y --install=no
mv *.deb ..
cd $BD
rm -rf nginx-${VER}

More information about the nginx mailing list