Debian 4.0(etch) → 5.0(lenny testing) upgrade

2008/3/19


目的

近日中にdebian 5.0(lenny)が正式にリリースされると思うが、一足先に試してみた。

準備

/etc/apt/sources.listを修正する。
#deb http://cdn.debian.or.jp/debian/ stable main contrib non-free
#deb-src http://cdn.debian.or.jp/debian/ stable main contrib non-free

deb http://cdn.debian.or.jp/debian/ lenny main
deb-src http://cdn.debian.or.jp/debian/ lenny main
deb http://security.debian.org/ lenny/updates main

アップグレード

アップデート・アップグレードを行う。
apt-get update
apt-get upgrade
apt-get dist-upgrade
アップグレードしたかな?
lenny/sidと出てくればOK
念のためkernelのバージョンも確認しておこう
cat /etc/debian_version
cat /proc/version
uname -e

PostgreSQL8.3

postgresqlは8.2と8.3が用意されている。lennyがリリースされる時には8.3になっているのでは?
PostgreSQL8.3は2008年2月4日にリリースされているので、8.3をテストする。
apt-get install postgresql-8.3
apt-get install postgresql-contrib-8.3
apt-get install php4-pgsql
旧バージョン(etch)で使用していたPostgresql-8.1は削除する。
apt-get remove postgresql-8.1
apt-get remove postgresql-contrib-8.1
ローケールがUTF-8(ja_JP.UTF-8)になっている。変更するには/etc/environmentを修正する。