Wednesday, June 20, 2007

17. Creating RPMs with checkinstall

(link to webpage)
Many times tarballs don't have uninstall scripts. This way your system becomes a mess when you want to uninstall these programs. Checkinstall is a program that allows you to easily build an rpm from a tarball. Download and install it from here.

Then when you want to install a tarball instead of ./configure && make && make install just type:

./configure
make
su -c '/usr/local/sbin/checkinstall'

Answer all the questions and finally install the given rpm. Checkinstall gives you the path it has stored the rpm. Now you can easily uninstall tarballs that don't have an uninstall script. This way you can keep your system clean.