顯示具有 Debian 標籤的文章。 顯示所有文章
顯示具有 Debian 標籤的文章。 顯示所有文章

2010年9月2日 星期四

鎖定套件避免 apt 升級部份套件的方法

Q: 如何避免 apt 雞婆的更新部份你想要裝 或 不想要更新的套件呢?
A: 修改 /etc/apt/preferences 就好了,內容會像是:
Package: PACKAGE_NAME
Pin: PIN
Pin-Priority: PIN_PRIORITY
以 syslinux 為例
Package: syslinux
Pin: version 3.8*
Pin-Priority: 100
所以優先順序填成下面的值,會造成不同的結果:

1001 # 永不更新,如果現存的版本比較新(優先順序比較低)還會作降級的動作
1000 # 跟 1001 一樣,不過 apt 不會作降級的動作
990 # 如果有比較高的版本用 "APT::Default-Release" 標示的會昇級
500 # 比 0.8* 還高的版本就會昇級,不過 0.8* 還是較低版本裡面的第一選擇
100 #syslinux 裡面有更高的版本就會不管 0.8* ,但如果沒有其它的版本先安裝了的話,就會先裝 0.8*
-1 # 避免裝 0.8* 這個版本

Reference:
http://antontw.blogspot.com/2009/06/linux-apt.html

2010年8月19日 星期四

How to install HP hpacucli package in Debian lenny

1. get lastest Support Pack CD from HP official site:
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=3288144&prodTypeId=15351&prodSeriesId=1121486&swLang=8&taskId=135&swEnvOID=4033

2. Mount the iso file and add as a local repository
sudo mount -o loop HP_ProLiant_Value_Add_Software-8.25-19-12.iso /media/tmp
echo "deb file:/media/tmp/ lenny/8.25 non-free " >> /etc/apt/sources.list

3. update and install packages
sudo apt-get update; sudo apt-get install hpacucli

4. check all logic drivers of controller slot number 5
hpacucli controller slot=5 logicaldrive all show status

Ceasar's Photo

www.flickr.com