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
Next run:
$ 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!
Thanks. I want all new packages. As I said it is running apache+php+mysql application, I want to keep running it after upgrade. Im developer, linux begginer, inherited this server and want to ugrade it so can install latest java. – alef – 2011-08-09T08:57:46.453
:( - sth wrong : downloaded debian-6.0.2.1-i386-CD-1.iso and followed steps.
during apt-get update got error : cant download file file:///mnt/deb-cd1/dists/squeeze/contrib/binary-i386/Packages.gz)
ok, removed
contrib
from sources.list, and now successed this step – alef – 2011-08-09T10:31:27.677Last time I use only DVD and there are exist contrib. non-free not allowed for distribution on CD/DVD. – gavenkoa – 2011-08-09T11:35:23.287