I'm currently self compiling the nginx package using the following:
sudo apt-get build-dep nginx-extras sudo apt-get install build-essential apt-get source nginx-extras cd nginx <add some custom module here> dpkg-buildpackage -us -uc sudo dpkg -i nginx-extras_1.10.0-0ubuntu0.16.04.4_amd64.deb sudo apt-mark hold nginx-extras
I do this because I need to install some custom modules - however after running this,
apt-get upgrade indicates there is an upgrade for nginx that it would apply if
apt-mark hold were not in effect. I thought I just compiled the latest version, so why does it want to upgrade??
The problem I have here is that I use apticron which sends me an email each day indicating I have unupgraded packages when I in fact do have the latest.
EDIT: Some additional output:
$ sudo apt-get upgrade --simulate Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: nginx-extras 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Inst nginx-extras [1.10.0-0ubuntu0.16.04.4] (1.10.0-0ubuntu0.16.04.4 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64]) Conf nginx-extras (1.10.0-0ubuntu0.16.04.4 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [amd64])
$ sudo apt-cache policy nginx-extras nginx-extras: Installed: 1.10.0-0ubuntu0.16.04.4 Candidate: 1.10.0-0ubuntu0.16.04.4 Version table: 1.10.0-0ubuntu0.16.04.4 500 500 http://mirrors.digitalocean.com/ubuntu xenial-updates/universe amd64 Packages 500 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages *** 1.10.0-0ubuntu0.16.04.4 100 100 /var/lib/dpkg/status 1.9.15-0ubuntu1 500 500 http://mirrors.digitalocean.com/ubuntu xenial/universe amd64 Packages