X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fupgrade-to-wheezy.mdwn;h=21edd0743703a9d08c30ebe21221fe8d398fa2a6;hb=3eabf061b64ad5cf115ea3608902ab11b6c8a5ad;hp=83dcb3471e5911fce9e8c70ce5b995681078aa13;hpb=ed7a8eed13a12d34a265ee1509d15f6e8dc9d2c8;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/upgrade-to-wheezy.mdwn b/input/howto/upgrade-to-wheezy.mdwn index 83dcb34..21edd07 100644 --- a/input/howto/upgrade-to-wheezy.mdwn +++ b/input/howto/upgrade-to-wheezy.mdwn @@ -1,4 +1,3 @@ - # Upgrade from squeeze to wheezy Make sure to coordinate with whoever uses the host, be it the buildd @@ -23,8 +22,9 @@ upgrade stuff: commands: sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list.d/debian.list /etc/apt/sources.list.d/security.list && + dpkg --clear-avail && rm -f /etc/apt/preferences.d/dsa-bacula-client && - if [ -e /etc/apt/preferences.d/buildd ]; then + if [ -e /etc/apt/sources.list.d/buildd.debian.org.list ]; then rm -f /etc/apt/preferences.d/buildd && sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list.d/buildd.debian.org.list fi && @@ -41,18 +41,21 @@ commands: apt-get --purge autoremove && while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done && apt-get purge liblzma2 lzma && + dpkg --clear-avail && apt-get clean if /etc/apache2/apache2.conf was not changed, remove the include for httpd.conf. 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}' more clean ups: + apt-get purge arrayprobe /usr/lib/nagios/plugins/dsa-check-packages | tr -d , apt-get --purge autoremove