I am wondering what the behavior of apt is when publishing multiple major versions of the same package. For example, if I have a package called foo
, with a latest version of 1.0.0
, and I publish version 2.0.0
, then publish version 1.1.0
afterwards, which will be regarded as the latest package when running sudo apt update
and sudo apt install foo
: the last package published (in this case 1.1.0
) or the package with the highest version number (in this case 2.0.0
)?