I would encourage you to not replace any executables that are part of a package that was installed using APT or
dpkg. It's better to keep this file in the directory
/usr/local/bin, IMO, given it's custom software that you've built yourself.
Also I'd take a look at that "Makefile",
Makefile.Debian to see if it includes a
make install target. That target, will often already be setup to install the binaries that were built into a directory such as
NOTE: The targeting of this directory is often configurable when you run the
./configure step, which "customizes" the targeted install directories.
How about the old manpage?
Using the install target will often times install man pages and other build artifacts into corresponding directories under
Will the OS have the information of the new executable, when I query for that by
No, installing files manually would cause the packages to be negated, and so and further management of the package using the package management software will no longer be able to track these modified files.