星期六, 九月 30, 2006

use checkinstall to synchonize package database

Redhat line linux such as Redhat Enterprise , Fedora, and also includes SUSE uses rpm to manage software packages and their dependencies. But we still grab source code from source forge or whereever to compile , make and make install. These information are not known by the rpm system. So you are still unable to install some rpms even when the depended libraries are already complied and installed. e.g. package A requieres libxxx > 1.0.x , but libxxx you only have 1.2.x in source but not rpm. Then unless a rpm is found, you can not install package A. ( can use --nodeps in rpm to force install, if you are sure the libraries are there).

Using checkinstall can solve this problem. The only thing you need to do after configure, make in a source directory is to use checkinstall instead of make install. The program will make a rpm for you (or deb. for debain) and then use rpm -ivh to install that rpm and both library and its information are added.

[2006/08/02]

Checkinstall can be found in http://asic-linux.com.mx/~izto/checkinstall/index.php.

没有评论: