I've compiled and installed my own build of nginx
in order to add a module that doesn't come with the built-in version. Roughly, I'm doing:
apt-get build-dep nginx
apt-get source nginx
cd nginx-1.6.2
# ... add module flag to debian/rules
dpkg-buildpackage -us -uc
dpkg -i ../nginx-full_1.6.2-5+deb8u2_amd64.deb
Now, when I use dpkg -l '*nginx*'
to show what nginx I have installed, I see:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================-==============-==============-=========================================
un nginx <none> <none> (no description available)
ii nginx-common 1.6.2-5+deb8u2 all small, powerful, scalable web/proxy serve
un nginx-doc <none> <none> (no description available)
un nginx-extras <none> <none> (no description available)
ii nginx-full 1.6.2-5+deb8u2 amd64 nginx web/proxy server (standard version)
un nginx-light <none> <none> (no description available)
My worry is that if upstream releases a new minor version of nginx, unattended-upgrades will replace my self-compiled version with the distro binary that doesn't have my custom module compiled in. Will this happen? If so, is there a way to prevent it?
You can always freeze the package version by
These packages will not be updated.