further improvments to squeeze procedure
authorPeter Palfrader <peter@palfrader.org>
Wed, 16 Mar 2011 14:20:40 +0000 (15:20 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 16 Mar 2011 14:20:40 +0000 (15:20 +0100)
input/howto/upgrade-to-squeeze.mdwn

index ef8a397..eb36eef 100644 (file)
@@ -66,6 +66,13 @@ do a puppet run:
 
        puppetd -t
 
+upgrade once more (security etc)
+
+       apt-get update && apt-get dist-upgrade
+
+rest follows
+
+       apt-get dist-upgrade
 
 check for obsolete packages
 
@@ -81,8 +88,9 @@ clean up old libs
 
 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}'
 
 possibly reboot