2009年05月07日
Xen関連パッケージをholdする
Eucalyptus環境を構築するためにUbuntuを9.04にしたい。
単にupgradeしてしまうとXen関連パッケージまでアップグレードされてしまう。
それを避けるべく、Xen関連パッケージはholdしておく。
対象パッケージを確認
$ dpkg -l | egrep 'xen|python' | awk '{print $2}'
libxen3
linux-image-2.6.24-23-xen
linux-restricted-modules-2.6.24-23-xen
linux-ubuntu-modules-2.6.24-23-xen
python
python-central
python-dev
python-minimal
python-support
python-xen-3.2
python2.5
python2.5-dev
python2.5-minimal
xen-hypervisor-3.2
xen-shell
xen-tools
xen-utils-3.2
holdする
$ sudo dpkg --get-selections | egrep xen | awk '{print $1, " hold"}' | dpkg --set-selections
「hold」になった事を確認
$ dpkg --get-selections | egrep 'xen|python' libxen3 hold linux-image-2.6.24-23-xen hold linux-restricted-modules-2.6.24-23-xen hold linux-ubuntu-modules-2.6.24-23-xen hold python hold python-central hold python-dev hold python-minimal hold python-support hold python-xen-3.2 hold python2.5 hold python2.5-dev hold python2.5-minimal hold xen-hypervisor-3.2 hold xen-shell hold xen-tools hold xen-utils-3.2 hold
これでアップグレード対象から除外される。
/etc/apt/sources.listを変更し、hardyをjauntyにする。
$ sudo cp -pi /etc/apt/sources.list /etc/apt/sources.list-hardy $ sudo perl -pi -e 's,hardy,jaunty,g' /etc/apt/sources.list $ sudo apt-get update $ sudo apt-get dist-upgrade
$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=9.04 DISTRIB_CODENAME=jaunty DISTRIB_DESCRIPTION="Ubuntu 9.04"
無事、Ubuntu 9.04になった。
Debianパッケージは素敵です。
さあ、今度はEucalyptus環境を構築して行く。