-if you are an autofs node, make sure to load the module before boot completes:
-
- echo autofs4 >> /etc/modules
-
-These last two are because autofs in particular lazy loads the modules, and it
-will happen after we've disabled module loading.
-
-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
-
- (reboot)
- upgrade-from-grub-legacy
- (reboot)
- apt-get purge grub &&
- apt-get install grub-pc
-
-clean up old libs
-
- orphaner
- orphaner -n
- orphaner -a
- orphaner -a -n
-
-check for unneeded/obsolete packages
-
- apt-get autoremove
-
- /usr/lib/nagios/plugins/dsa-check-packages
-
-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}'
-
-purge cruft that upgrade doesn't remove
-
- apt-get remove --purge emacs22-common libxmlrpc-ruby libcap1 emacs22-nox emacs22-bin-common libvolume-id0 gcc-4.2-base ifenslave libopenssl-ruby1.8 mailx
-
-re-init samhain
-
-possibly reboot
-
-re-enable exim, samhain
-
- mv /etc/rc2.d/K??exim4 /etc/rc2.d/S02exim4
- mv /etc/rc2.d/K??samhain /etc/rc2.d/S02samhain
- env -i /etc/init.d/exim4 start
- env -i /etc/init.d/samhain start
-
- insserv