關於checkinstall生成自定義的RPM包

定製版RPM包安裝方法

#關於源碼安裝的優缺點:
優勢:可以自定義各個模塊,靈活
缺點:升級麻煩,安裝編譯費時間

#關於RPM安裝的優缺點:
優勢:安裝升級刪除方便,速度快
缺點:各個模塊都定義好了,沒法修改。

#關於定製版的RPM包的優缺點:
優勢:本身定義編譯選項,安裝刪除靈活
缺點:須要本身作定製版的PRM包的安裝
php

下載地址:http://asic-linux.com.mx/~izto/checkinstall/download.php
1、安裝checkinstall
# tar -xf checkinstall-1.6.2.tar.gz
# cd checkinstall-1.6.2
# make
# su
# make install

關於使用了checkinstall定製了RPM包後,安裝上有問題,排除信賴關係,基本就是Selinux的問題。
關於這個,找到了解決方法
You can tell checkinstall to not use the file system translation mechanism by either providing the command-line option --fstrans=no  or editing the config file (usually in /usr/local/lib/checkinstall/checkinstallrc) to say TRANSLATE=0 (and INSTALL=1 to actually install something)

checkinstall的使用:
一、在一個軟件進行成功的編譯安裝後,你能夠選擇使用checkinstall --fstrans=no 來選擇製做RPM包。<我在生成RPM包時,沒有過多的關注信賴關係,由於我認爲若是你在編譯時能成功,使用RPM 一樣也能成樣,RPM能夠幫你節約編譯的時間>
RedHat官方的RPM製做方法很是的麻煩,使用checkinstall能夠做爲可選的替換方法。
在批量安裝某些客戶端包,或是部署某些不是很是的麻煩的包時,是徹底能夠應付的linux

相關文章
相關標籤/搜索