Monthly Archives: February 2011

update: Debian 5 (lenny) -> Debian 6 (squeeze)

0.
/etc/apt/apt.conf:
APT::Install-Recommends "false";

1. Create backup:
tar -vcpzf /home/backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/home --exclude=/mnt --exclude=/sys --exclude /var/cache/apt/archives /

dpkg –get-selections “*” > /root/dpkg_list.txt

2.
apt-get purge splashy
aptitude
dpkg --audit; aptitude search "~ahold" | grep "^.h"; dpkg --get-selections | grep hold
dpkg -l | pager;

/etc/apt/sources.list:
deb http://ftp.ru.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.ru.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main non-free contrib
deb-src http://security.debian.org/ squeeze/updates main non-free contrib

script -t 2>~/upgrade-squeeze.time -a ~/upgrade-squeeze.script

3.
apt-get update
apt-get -o APT::Get::Trivial-Only=true dist-upgrade
# apt-get install proftpd-basic nginx postfix
# apt-get install apache2 apache2-mpm-prefork apache2.2-common apache2-suexec-custom
### update custom suexec
apt-get upgrade
### update /etc/suphp/suphp.conf
apt-get install linux-image-2.6-686-bigmem udev firmware-linux
apt-get dist-upgrade

### update /etc/conf.d:
### iptables.srv, nginx, apache2
### dpkg-reconfigure sysv-rc