CheckInstall keeps track of all files installed by a "make install" or equivalent, creates a Slackware, RPM, or Debian package with those files, and adds it to the installed packages database, allowing for easy package removal or distribution.
It makes possible to keep you system clean, cause it let you to remove all the package, leaving no mess!
Create respective directory:
Downloading the package:
rpm -ivh checkinstall*.rpm
yum install rpm-build