turn off samhain
- /etc/init.d/samhain stop
+ /etc/init.d/samhain stop &&
+ mv /etc/rc2.d/S19samhain /etc/rc2.d/K19samhain # and stay down
maybe turn off exim
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}'`
+ 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}'
change sources list entries to squeeze:
puppetd -t
+upgrade once more (security etc)
+
+ apt-get update && apt-get dist-upgrade
+
+clean up transitions
+
+ dpkg --purge dhcp3-client && apt-get install isc-dhcp-client # mark as non-auto
+
+Do the same for grub/grub-pc if you did upgrade-from-grub-legacy
+
+ upgrade-from-grub-legacy
+ apt-get purge grub
+ apt-get install grub-pc
check for obsolete packages
orphaner -a
orphaner -a -n
-
purge removed packages
- dpkg --get-selections | awk '$2!="install" {print $1}'
- echo "really purge these [y/N]?"; read ans; [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2!="install" {print $1}'`
+ 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}'
+
+re-init samhain
possibly reboot
-re-enable exim
+re-enable exim, samhain
- mv /etc/rc2.d/K20exim4 /etc/rc2.d/S20exim4
+ mv /etc/rc2.d/K02exim4 /etc/rc2.d/S02exim4
+ mv /etc/rc2.d/K02samhain /etc/rc2.d/S02samhain
env -i /etc/init.d/exim4 start
+ env -i /etc/init.d/samhain
+
+ insserv
+
+re-init samhain
### Problems with CCISS