It really depends on why you wanted to use the latest version in the first place. In the case of a product like Apache, the version that is available via the official repository will continue to get security updates during its life cycle, so that is not a reason to install the very latest version.
I would always advise using officially packaged versions of software - either from Ubuntu or direct from the vendor if they have their own repository, unless you have a very good reason not to such as a new feature you cannot live without. Not only will it save you a lot of effort, but also you are also more likely to keep your production server up to date with security updates because they will be made available for easy installation via apt-get
.
It is normally preferable to use the same version of the software for development as you are using for production to avoid compatibility issues; you could read the new features list to see if there are any changes that might affect you, but sometimes it is only possible to find out the hard way by testing.
make uninstall
in your original build directory. See http://askubuntu.com/questions/87111/if-i-build-a-package-from-source-how-can-i-uninstall-or-remove-completely. – David Edwards Jun 20 '13 at 07:41