«前の日記(2009-02-16) 最新 次の日記(2009-02-18)» 編集

echo.createdb.net

https://echo.createdb.net/fts4p/
[PHPマニュアル検索] [PGSQLマニュアル検索]

2009-02-17

_ [OS] Debian etch→lenny アップグレード

## Debian GNU/Linux 4.0「etch」から
## Debian GNU/Linux 5.0「lenny」へアップグレード

# etchでの最新状態にする。
aptitude update
aptitude dist-upgrade

# バックアップ
cp /etc/apt/sources.list /etc/apt/sources.list_etch

# 確認しながら置換する。
vi /etc/apt/sources.list
:%s/etch/lenny/gc
lenny に置換しますか? (y/n/a/q/l/^E/^Y)

# etch→lenny
aptitude update
aptitude dist-upgrade
# 自動で保留されているパッケージがある。
# 基本的にデフォルトで進む。

# 設定ファイルの選択は「パッケージメンテナのバージョンをインストール(Y or I  : install the package maintainer's version)」を選び後でマージする。
/etc/samba/smb.conf
/etc/vim/vimrc
/etc/ntp.conf
/etc/munin/munin-node.conf
/etc/munin/plugin-conf.d/munin-node

# 新しい設定ファイルをバックアップしてマージする。
cp /etc/samba/smb.conf /etc/samba/smb.conf-std
diff /etc/samba/smb.conf /etc/samba/smb.conf.ucf-old
vi /etc/samba/smb.conf

cp /etc/vim/vimrc /etc/vim/vimrc-std
diff /etc/vim/vimrc /etc/vim/vimrc.dpkg-old
vi /etc/vim/vimrc

cp /etc/ntp.conf /etc/ntp.conf-std
diff /etc/ntp.conf /etc/ntp.conf.dpkg-old
vi /etc/ntp.conf

cp /etc/munin/munin-node.conf /etc/munin/munin-node.conf-std
diff /etc/munin/munin-node.conf /etc/munin/munin-node.conf.dpkg-old
vi /etc/munin/munin-node.conf

cp /etc/munin/plugin-conf.d/munin-node /etc/munin/plugin-conf.d/munin-node-std
diff /etc/munin/plugin-conf.d/munin-node /etc/munin/plugin-conf.d/munin-node.dpkg-old
vi /etc/munin/plugin-conf.d/munin-node

# 古い設定ファイルを削除する。
rm /etc/samba/smb.conf.ucf-old
rm /etc/vim/vimrc.dpkg-old
rm /etc/ntp.conf.dpkg-old
rm /etc/munin/munin-node.conf.dpkg-old
rm /etc/munin/plugin-conf.d/munin-node.dpkg-old


# 新カーネル
aptitude install linux-image-2.6.26-1-686

# 再起動
reboot

# 旧カーネル削除
aptitude purge linux-image-2.6-486-etchnhalf

# 自動で保留されていたパッケージをアップグレードする。
aptitude dist-upgrade

# 設定ファイルの選択は「パッケージメンテナのバージョンをインストール(Y or I  : install the package maintainer's version)」を選び後でマージする。
/etc/bash.bashrc

# マージする。
cp /etc/bash.bashrc /etc/bash.bashrc-std
diff /etc/bash.bashrc /etc/bash.bashrc.dpkg-old
vi /etc/bash.bashrc


# 古いパッケージのキャッシュの掃除。
aptitude autoclean


«前の日記(2009-02-16) 最新 次の日記(2009-02-18)» 編集