commands:
sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list.d/debian.list /etc/apt/sources.list.d/security.list &&
+ rm -f /etc/apt/preferences.d/dsa-bacula-client &&
+ if [ -e /etc/apt/preferences.d/buildd ]; then
+ rm -f /etc/apt/preferences.d/buildd &&
+ sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list.d/buildd.debian.org.list
+ fi &&
apt-get update &&
apt-get install dpkg apt samhain &&
service samhain stop &&
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}'