去る2015年4月25日、Debian 8 Jessieがリリースされましたね!
早速Debian 7.8からバージョンアップしました。
超ざっくりとですが、バージョンアップの手順をまとめました。
既存バージョンのパッケージを最新にする
バーっと最新にしておきましょう。
1 2 3 |
root@kotori:~# apt-get update root@kotori:~# apt-get upgrade |
パッケージの状態を確認する。
インストール中断や設定失敗など何らかのエラー状態にあるパッケージがないこと、
パッケージが最新の状態であるかを確認します。
1 2 3 4 |
root@kotori:~# dpkg --audit root@kotori:~# aptitude search \"~ahold\" root@kotori:~# grep \"proposed-updates\" /etc/apt/sources.list |
何も出力されなければOK!
不要なキャッシュ等を削除
キレイキレイしておきます。
1 2 3 |
root@kotori:~# apt-get clean root@kotori:~# apt-get autoremove |
既存のsources.listのバックアップ
念のため残します。
1 2 |
root@kotori:~# cp /etc/apt/sources.list /etc/apt/sources.list.wheezy |
sources.listの編集
wheezyからjessieに書き換えるだけでOK
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
root@kotori:~# vi /etc/apt/sources.list # # deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 NETINST Binary-1 20150110-14:41]/ jessie main #deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 NETINST Binary-1 20150110-14:41]/ jessie main deb http://ftp.jp.debian.org/debian/ jessie main deb-src http://ftp.jp.debian.org/debian/ jessie main deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main # jessie-updates, previously known as \'volatile\' deb http://ftp.jp.debian.org/debian/ jessie-updates main deb-src http://ftp.jp.debian.org/debian/ jessie-updates main |
diffを取ってみました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
root@kotori:~# diff -yBbw /etc/apt/sources.list /etc/apt/sources.list.wheezy # # # deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 | # deb cdrom:[Debian GNU/Linux 8.0.0 _Wheezy_ - Official amd64 #deb cdrom:[Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 | #deb cdrom:[Debian GNU/Linux 8.0.0 _Wheezy_ - Official amd64 deb http://ftp.jp.debian.org/debian/ jessie main | deb http://ftp.jp.debian.org/debian/ wheezy main deb-src http://ftp.jp.debian.org/debian/ jessie main | deb-src http://ftp.jp.debian.org/debian/ wheezy main deb http://security.debian.org/ jessie/updates main | deb http://security.debian.org/ wheezy/updates main deb-src http://security.debian.org/ jessie/updates main | deb-src http://security.debian.org/ wheezy/updates main # jessie-updates, previously known as \'volatile\' | # wheezy-updates, previously known as \'volatile\' deb http://ftp.jp.debian.org/debian/ jessie-updates main | deb http://ftp.jp.debian.org/debian/ wheezy-updates main deb-src http://ftp.jp.debian.org/debian/ jessie-updates main | deb-src http://ftp.jp.debian.org/debian/ wheezy-updates main |
パッケージの更新とOSのアップグレード
バーっとJessieのパッケージ取ってきて、apt-get dist-upgradeを叩きます。
パッケージのバージョン上げるかとか途中で聞いてきますが、用途に合わせてどうぞ。
1 2 3 |
root@kotori:~# apt-get update root@kotori:~# apt-get dist-upgrade |
バージョンの確認
最新のバージョンになったか確認して下さい。
1 2 3 |
root@kotori:~# cat /etc/debian_version 8.0 |
8.0になっていればOK!!