Sunday, August 8, 2010

Use "checkinstall" instead of "make install" to make uninstall easy.

Sometimes, some application is not ready as a package. In this case, many site just recommend to use:

./configure
sudo make
sudo make install

In some case, it is possible to uninstall with

sudo make uninstall

but, many cases, it comes back with error. According to Mr. C,
"Many makefiles created with autoconf create dummy rules such as:

uninstall: uninstall-recursive

where no uninstall-recursive target is defined. They are no-ops."

As a result, to uninstall, it is necessary to delete folders made from "make install". That's why it is better to use "checkinstall". Install checkinstall with aptitude, then,

./configure
sudo make
sudo checkinstall

The application will be installed, and a .deb file will be made. Now uninstall is easy!

No comments:

Post a Comment