How to upgrade debian (no network or direct access)

4

2

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.

alef

Posted 2011-08-09T07:06:44.093

Reputation: 43

Answers

2

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!

gavenkoa

Posted 2011-08-09T07:06:44.093

Reputation: 1 386

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)

`mantis:/mnt/deb-cd1/dists/squeeze/contrib/binary-i386# ls`
`Release'
 – alef  – 2011-08-09T10:16:55.360

ok, removed contrib from sources.list, and now successed this step – alef – 2011-08-09T10:31:27.677

Last 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