remove extra &&
[mirror/dsa-wiki.git] / input / howto / upgrade-to-wheezy.mdwn
1
2 # Upgrade from squeeze to wheezy
3
4 Make sure to coordinate with whoever uses the host, be it the buildd
5 operator, the QA team, the ftp team or just announce it if it's a
6 general developer box.
7
8 on buildds:
9
10         cd ~buildd
11         sudo su - buildd
12         touch NO-DAEMON-PLEASE EXIT-DAEMON-PLEASE && exit
13
14         now wait for the buildd to quit
15
16 upgrade stuff:
17
18         sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list.d/debian.list /etc/apt/sources.list.d/security.list &&
19         apt-get update &&
20         apt-get install dpkg apt samhain &&
21         service samhain stop &&
22         apt-get dist-upgrade &&
23         rm /var/state/samhain/samhain_file &&
24         samhain --foreground -t init -p none -s none -l none -m none &&
25         (puppet agent -t || true) &&
26         apt-get dist-upgrade &&
27         c_rehash /etc/ssl/debian/certs &&
28         apt-get --purge autoremove
29
30 answer question to libc6 "Restart services automaticaly" with "yes"
31 answer "Yes" to changes of /etc/default/rcS, [BR#694928](http://bugs.debian.org/694928)
32 and change "FSCKFIX=yes" afterwards, at least on hardware without remote access (like arm*)
33
34 clean ups:
35
36         orphaner --purge -n
37
38         apt-get purge liblzma2 lzma libept1
39
40         /usr/lib/nagios/plugins/dsa-check-packages | tr -d ,
41
42         apt-get --purge autoremove
43
44
45 purge removed packages
46
47         dpkg --get-selections | awk '$2=="deinstall" {print $1}' &&
48         echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` &&
49         echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
50
51 update dsa-nagios.git (add host to wheezy hostgroup)
52
53 re-init samhain
54
55         samhain --foreground -t update -p none -s none -l none -m none
56
57 possibly reboot