#!/bin/sh # Do we just want to use dchroot -l ? for d in lenny squeeze wheezy sid \ lenny_i386 squeeze_i386 wheezy_i386 sid_i386 \ lenny_amd64 squeeze_amd64 wheezy_amd64 sid_amd64 \ ; do [ -d /chroot/$d ] || continue; echo; echo $d; echo chroot /chroot/$d apt-get update && chroot /chroot/$d apt-get dist-upgrade -y && chroot /chroot/$d apt-get clean && chroot /chroot/$d apt-get autoremove done