views:

16

answers:

2

Hey everyone. I'm using the Ubuntu server for some time now. Everything is working fine, installing packages is a piece of cake. Usually I use aptitude or apt-get for package management. But...! There are cases when I need to install a package from a source. No problem usually I do ./configure, make install and so on. But...! There are also cases I want to upgrade a package I manually installed from a source. This is where things get blured :).

My question: What is a proper way to install custom packages. I'm thinking of install/uninstall process like on Windows. I would like to remove all the package files after the package was manually installed using make/install command.

I know there is a script through which you can run make commands and later it knows how to remove the package and all related files/paths but can not remember the name.

Please help! Thx 10x!

+1  A: 

Are you thinking of make uninstall?

Kurt
Hum... not really... I need some kind of "wizard" that knows what to delete if I want to delete a package. How would you use make uninstall? Would this delete all related paths?
xpepermint
For packages installed with make install, make uninstall will usually delete the files that make install installed. Not always though, and it probably won't always delete config and data files for example. That is one of the downsides to manual installation, and one of the reasons package managers like dpkg etc were invented.There could be some daemon or something that monitors the filesystem and keeps track of what programs use what files and can assist in cleaning up after deinstallation but I am not aware of any. Is that what you are after?
Kurt
Yup... we understand each other. A deamon should be a good solution ...
xpepermint
+1  A: 

You can roll your own .deb packages, that way you can install/remove with dpkg and/or apt-get.

see this link.

Jasper
hum... can you please write the example for memcache installation http://code.google.com/p/memcached/wiki/NewInstallFromSource and then how would you uninstall it. Thx.
xpepermint
There's also alien.
Nathon