X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fupgrade-to-wheezy.mdwn;h=83dcb3471e5911fce9e8c70ce5b995681078aa13;hb=ed7a8eed13a12d34a265ee1509d15f6e8dc9d2c8;hp=620c38326c6c221a2ca902eaa449dbc0352f97d0;hpb=39d9bb4e301172e7f9240d288f8c9b53908dd60c;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/upgrade-to-wheezy.mdwn b/input/howto/upgrade-to-wheezy.mdwn index 620c383..83dcb34 100644 --- a/input/howto/upgrade-to-wheezy.mdwn +++ b/input/howto/upgrade-to-wheezy.mdwn @@ -15,7 +15,19 @@ on buildds: upgrade stuff: +* answer question to libc6 "Restart services automaticaly" with "yes" +* answer "Yes" to changes of /etc/default/rcS, [BR#694928](http://bugs.debian.org/694928) +* and change "FSCKFIX=yes" afterwards, at least on hardware without remote access (like arm*) +* say no to other other questions. + +commands: + sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list.d/debian.list /etc/apt/sources.list.d/security.list && + rm -f /etc/apt/preferences.d/dsa-bacula-client && + if [ -e /etc/apt/preferences.d/buildd ]; then + rm -f /etc/apt/preferences.d/buildd && + sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list.d/buildd.debian.org.list + fi && apt-get update && apt-get install dpkg apt samhain && service samhain stop && @@ -25,33 +37,34 @@ upgrade stuff: (puppet agent -t || true) && apt-get dist-upgrade && c_rehash /etc/ssl/debian/certs && - apt-get --purge autoremove + c_rehash /etc/exim4/ssl && + apt-get --purge autoremove && + while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done && + apt-get purge liblzma2 lzma && + apt-get clean -answer question to libc6 "Restart services automaticaly" with "yes" -answer "Yes" to changes of /etc/default/rcS, [BR#694928](http://bugs.debian.org/694928) -and change "FSCKFIX=yes" afterwards, at least on hardware without remote access (like arm*) -clean ups: +if /etc/apache2/apache2.conf was not changed, remove the include for httpd.conf. - orphaner --purge -n +purge removed packages + dpkg --get-selections | awk '$2=="deinstall" {print $1}' && + echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` && + echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}' - apt-get purge liblzma2 lzma libept1 +more clean ups: /usr/lib/nagios/plugins/dsa-check-packages | tr -d , - apt-get --purge autoremove +maybe + apt-get install firmware-linux -purge removed packages +update dsa-nagios.git (add host to wheezy hostgroup) - dpkg --get-selections | awk '$2=="deinstall" {print $1}' && - echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` && - echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}' +reboot -update dsa-nagios.git (add host to wheezy hostgroup) +verify ipv6 routing still works. re-init samhain - samhain --foreground -t update -p none -s none -l none -m none && - -possibly reboot + samhain --foreground -t update -p none -s none -l none -m none