Debian: How to use "apt-get install" without upgrading dependencies?

You can try the --nodeps flag with apt-get or you can try the debian package utility, dpkg, with the option --ignore-depends.


On Debian 8 I've found the option --no-upgrade can help achieving the desired result. For example:

apt-get install --no-upgrade php7.0-xmlrpc