Experiment with syntax
authorPeter Palfrader <peter@palfrader.org>
Thu, 12 Mar 2009 18:44:54 +0000 (19:44 +0100)
committerPeter Palfrader <peter@palfrader.org>
Thu, 12 Mar 2009 18:44:54 +0000 (19:44 +0100)
input/howto/upgrade-to-lenny.mdwn

index ec77dfb..800f979 100644 (file)
@@ -7,7 +7,7 @@ make apt sane:
         echo 'APT::Install-Recommends 0;' > /etc/apt/apt.conf.d/local-recommends
 
 
-add volatile to sources list and upgrade (at least the archive keyring)
+add volatile to sources list and upgrade (at least the archive keyring)
 
        grep volatile /etc/apt/sources.list || cat >> /etc/apt/sources.list << EOF
        deb     http://volatile.debian.net/debian-volatile etch/volatile  main
@@ -15,17 +15,17 @@ make apt sane:
        apt-get update && apt-get dist-upgrade
 
 
-turn off samhain
+turn off samhain
 
        /etc/init.d/samhain stop
 
 
-maybe turn off exim
+maybe turn off exim
 
        /etc/init.d/exim4 stop
 
 
-install deborphan, clean up
+install deborphan, clean up
 
        apt-get install deborphan dialog
        orphaner
@@ -34,26 +34,26 @@ make apt sane:
        orphaner -a -n
 
 
-purge removed packages
+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}'`
 
 
-remove cruft and prepare sources.list update
+remove cruft and prepare sources.list update
 
        rm -f /etc/apt/sources.liste
        mkdir -p /etc/apt/sources.list.d
 
 
-change sources list entries to lenny:
+change sources list entries to lenny:
 
        mirror=`cat /etc/apt/sources.list | awk '/debian/ {print $2; exit}'`
        echo "Mirror is $mirror"; echo "Fix stuff if this seems wrong"; echo "XXXXXXXXXXXXXXXXXXXXXXX"
        echo "## VERIFY THE MIRROR IS CORRECT ##"; read
 
 
-write new sources.list.d/ entries:
+write new sources.list.d/ entries:
 
        (! [ -e /etc/apt/sources.list ] || mv /etc/apt/sources.list /etc/apt/sources.list-oldetch) &&
        cd /etc/apt/sources.list.d &&
@@ -81,7 +81,7 @@ make apt sane:
        (! grep restricted /etc/apt/sources.list-oldetch || echo 'deb     http://db.debian.org/debian-admin          lenny-restricted non-free' >> debian.org.list )
 
 
-add bpo key
+add bpo key
 
        apt-key add - << EOF
        -----BEGIN PGP PUBLIC KEY BLOCK-----
@@ -125,17 +125,17 @@ make apt sane:
        EOF
 
 
-update apt list
+update apt list
 
        apt-get update
 
 
-upgrade
+upgrade
 
        apt-get install locales-all
 
 
-rest follows
+rest follows
 
        apt-get dist-upgrade
 
@@ -168,15 +168,15 @@ make apt sane:
  * change ServerTokens from "Full" to "ProductOnly" in /etc/apache2/conf.d/security
 
 
-update nagios on samosa  (add host to lenny hostgroup)
+update nagios on samosa  (add host to lenny hostgroup)
 
-maybe install [[puppet|puppet-install]]
+maybe install [[puppet|puppet-install]]
 
-check for obsolete packages
+check for obsolete packages
 
        /usr/lib/nagios/plugins/dsa-check-packages
 
-clean up old libs
+clean up old libs
 
        orphaner
        orphaner -n
@@ -184,7 +184,7 @@ make apt sane:
        orphaner -a -n
 
 
-purge removed packages
+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}'`