-
Type:
Bug
-
Status: Done
-
Priority:
Medium
-
Resolution: Fixed
-
Affects Version/s: 3.10.0, 3.12.0
-
Component/s: Promise type: packages
-
Labels:
With apt you can set a package on hold:
- aptitude hold cfengine3
Now apt-get -s upgrade will list
Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: cfengine3 The following packages will be upgraded: accounting-nrc singularity-container 2 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. Inst accounting-nrc [1.7+nmu2] (1.7+nmu4 sara:stretch [amd64]) Inst singularity-container [2.5.0] (2.5.2 sara:stretch [amd64]) Conf accounting-nrc (1.7+nmu4 sara:stretch [amd64]) Conf singularity-container (2.5.2 sara:stretch [amd64])
While debian 8 and higher apt list --upgradable
accounting-nrc/stretch 1.7+nmu4 amd64 [upgradable from: 1.7+nmu2] cfengine3/stretch 3.12.0-6 amd64 [upgradable from: 3.10.3-1] singularity-container/stretch 2.5.2 amd64 [upgradable from: 2.5.0]
To be compatible we can add apt-get -s ---ignore-hold upgrade
The following held packages will be changed: cfengine3 The following packages will be upgraded: accounting-nrc cfengine3 singularity-container 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Inst accounting-nrc [1.7+nmu2] (1.7+nmu4 sara:stretch [amd64]) Inst cfengine3 [3.10.3-1] (3.12.0-6 sara:stretch [amd64]) Inst singularity-container [2.5.0] (2.5.2 sara:stretch [amd64]) Conf accounting-nrc (1.7+nmu4 sara:stretch [amd64]) Conf cfengine3 (3.12.0-6 sara:stretch [amd64]) Conf singularity-container (2.5.2 sara:stretch [amd64])
Then all packages upgrades will be shown and we can use the keyword latest again for package version if we are using a test node.