ef8a3979cc83aa7eedff99b5a7a481026ff39c41
[mirror/dsa-wiki.git] / input / howto / upgrade-to-squeeze.mdwn
1
2 # Upgrade from lenny to squeeze
3
4 turn off samhain
5
6         /etc/init.d/samhain stop
7
8
9 maybe turn off exim
10
11         /etc/init.d/exim4 stop &&
12         mv /etc/rc2.d/S20exim4 /etc/rc2.d/K20exim4 # so it stays down
13
14
15 install deborphan, clean up
16
17         apt-get install deborphan dialog
18         orphaner
19         orphaner -n
20         orphaner -a
21         orphaner -a -n
22
23
24 purge removed packages
25
26         dpkg --get-selections | awk '$2=="deinstall" {print $1}'
27         echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'`
28         echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
29
30 change sources list entries to squeeze:
31
32         cd /etc/apt/sources.list.d && sed -i "s#lenny#squeeze#g" debian.list
33
34 update apt list
35
36         apt-get update
37
38 upgrade
39
40         apt-get install locales-all
41
42 rest follows
43
44         apt-get dist-upgrade
45
46
47 reject changes to /etc/pam.d/sudo (puppet will install a new file later anyway)
48
49 reject changes to /etc/munin/plugin-conf.d/munin-node (puppet will install a new file later anyway)
50
51  * keep local (i.e. reject (N)):
52   * all changes relating to exim  (in /etc/exim4 and in logrotate)
53   * /etc/ldap/ldap.conf
54   * /etc/nagios/nrpe.cfg
55   * /etc/samhain/samhainrc
56   * /etc/munin/munin-node.conf
57   * /etc/logrotate.d/apache2
58   * /etc/apache2/apache2.conf
59   * /etc/apache2/ports.conf
60
61 update nagios.git (add host to squeeze hostgroup)
62
63 update dsa-puppet.git (add to squeeze list in local.yaml)
64
65 do a puppet run:
66
67         puppetd -t
68
69
70 check for obsolete packages
71
72         /usr/lib/nagios/plugins/dsa-check-packages
73
74 clean up old libs
75
76         orphaner
77         orphaner -n
78         orphaner -a
79         orphaner -a -n
80
81
82 purge removed packages
83
84         dpkg --get-selections | awk '$2!="install" {print $1}'
85         echo "really purge these [y/N]?"; read ans; [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2!="install" {print $1}'`
86
87 possibly reboot
88
89 re-enable exim
90
91         mv /etc/rc2.d/K20exim4 /etc/rc2.d/S20exim4
92         env -i /etc/init.d/exim4 start
93
94
95 ### Problems with CCISS
96
97 On custom kernels in squeeze it seems that udev stopped to create cciss devices, thus in /lib/udev/devices do a /dev/MAKEDEV cciss and reboot.
98
99         cd /lib/udev/devices
100         /dev/MAKEDEV cciss