среда, 19 июня 2013 г.

Installing CheckInstall on CentOS


     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:
cd /
mkdir checkinstall
cd checkinstall
mkdir install
Downloading the package:
wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/andnagy/RedHat_RHEL-6/x86_64/checkinstall-1.6.2-20.2.x86_64.rpm
Installation:
rpm -ivh checkinstall*.rpm
yum install rpm-build
Avoiding the problem checkinstall cannot create directory `/usr/local/share/:
vi /etc/checkinstallrc
TRANSLATE=0

Create directory structure for CheckInstall
(this avoid such errors like /root/rpmbuild has no SOURCES directory)

yum install rpmdevtools
rpmdev-setuptree

rpmbuild/
├── BUILD
├── RPMS
├── SOURCES
├── SPECS
└── SRPMS

Done!

So, now you do:
./configure
make
(no make install!!!)
checkinstall --nodoc --install=yes -y

+ you can remove the package from the system using rpm -e <package.rpm>



Used:


Комментариев нет:

Отправить комментарий