Ubuntu – How to manage software that is installed from source

install-from-sourcepackage-managementserver

From time to time, we may have to install something from source due to various reasons. While it is fairly standard how to install software given appropriate dependencies, it is not clear to me how to manage such installation for future convenience.

More specifically:

  1. What can we do to ensure an easy and clean uninstallation (including those dependencies that are installed just before and just for the software installed from source)?

  2. What can we do to ensure an easy and clean upgrade of the same software, which will likely be installed from source again?

  3. What can we do to minimize potential conflict if there are a default package (installed using apt-get) as well as the (newer) version of the package (installed from source)?

Best Answer

Using checkinstall make install will create a temporary package and install it. This means it is recorded in the package manager and can be uninstalled.

Related Question