2009年12月30日

使用 apt-build 編譯最佳化套件

sudo apt-get install apt-build
# 安裝 apt-build 套件

sudo dpkg-reconfigure apt-build or sudo vi /etc/apt/apt-build.conf
# 重新設定 apt-build 選項與 apt-build 設定檔位置

sudo apt-build update
# 更新套件庫清單

sudo apt-build install
# 安裝新套件,且自動最佳化編譯

sudo apt-build --reinstall install

# 重新安裝套件,且重新最佳化編譯

sudo dpkg --get-selections | awk ' { if ( $2 == "install" ) print $1 } ' > /etc/apt/apt-build.list
sudo apt-build world
# 匯出系統所有安裝套件清單,並做全系統編譯,費時好幾天,並可能失敗,請慎重考慮

沒有留言:

張貼留言


搜尋此網誌