I have patched and recompiled a debian package. By default when I upgrade, apt wants to upgrade it with the SAME version from the repository instead.
Now, I want to convince it (by using apt-pinning, and not hold) to keep the local package if the version is the same, and try to upgrade only if the remote version is newer.
How can I do that?