duplicate line
[mirror/dsa-wiki.git] / input / howto / upgrade-to-squeeze.mdwn
index eb36eef..fb19472 100644 (file)
@@ -23,8 +23,8 @@ install deborphan, clean up
 
 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:
@@ -70,10 +70,6 @@ upgrade once more (security etc)
 
        apt-get update && apt-get dist-upgrade
 
-rest follows
-
-       apt-get dist-upgrade
-
 check for obsolete packages
 
        /usr/lib/nagios/plugins/dsa-check-packages
@@ -88,8 +84,8 @@ clean up old libs
 
 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}'
 
 possibly reboot