I'am running debian 4.0 on machine with no internet access. How can I upgrade it to latest stable? I can download iso using local machine and upload it via scp. whats next? Which iso - is cd1 enough or need download big dvd? Machine is running apache + php, no other extra packages.
You need mount this ISO image:
$ sudo mount -t iso9660 -o loop /path/to/iso /mnt/deb-cd1
Next add /mnt/deb-cd1 to /etc/apt/sources.list:
deb file:///mnt/deb-cd1 squeeze main contrib
$ sudo apt-get update $ sudo apt-get dist-upgrade
NOTE: As CD can not contain all of packages that you install on your system some packages preserved in old version... With DVD you can upgrade more packages then with CD.
CD contain new kernel, libc and build toolset (as well as new Perl/Python/Ruby) so it is enough to upgrade. But namy other software that you can use out of CD content. Decide do you need new kernel and libc with older software or you need new packages as well.
NOTE Debiand 4.0 is too old and does not maintened now. So there are no any security fixes. Strongly recommend to upgrade!