How do I force apt/apt-get to update to the latest version of a package that is available on the package server even if this means a downgrade but without specifying the version I want to install.
For example I have foo_0.2
locally installed and the server only has foo_0.1
. In that case I want to get foo_0.1
installed.
I know I can manually find out the version available on the package server via apt policy foo
and then run apt install foo=0.1
.
But is there a command that just installs the latest version that is on the package server without me explicitly specifying the version?
Note: A similar question was asked in How to downgrade a package via apt-get?, but this question here is about downgrading without manually specifying a version.