Every now and then I'm in need of updating a software running on one of our testservers at work (mostly Debian). What really confuses me almost every time is the fact that there is not just one way to install software. Today I needed to upgrade Coffeescript. I didn't know how it was installed initially and therefore not how to update it the best way.
It could have been installed with apt or manually by cloning the github-project and building it on my own or via the nodejs package manager npm. After I struggled with this and manually threw all coffeescript related files and dirs away I managed to do a fresh install. But then I wanted to use a coffeescript command that needs nodejs 0.6 and 0.4 was installed.
So, let the games begin again!
Was nodejs installed manually? Or as package? Or was it put there by god? I don't know.
So I'm asking myself is there some easy strategy to update installed software when you don't really know how it was intially installed? What are the best approaches here?