Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to update my bind9 package in my Debian lenny server. Please suggest me what is the best way to do this. This server does not have internet connection. And this operation should not affect the exist system setup. Can any one please suggest me on this.


share|improve this question

migrated from Nov 18 '11 at 8:42

This question came from our site for professional and enthusiast programmers.

Please don't re-ask it, instead wait for the moderators to move it over for you. You can also flag your own question to ask for a move, I believe. – derobert Nov 18 '11 at 8:01
@derobert, true enough -- or wait for "the community" to move it. (It's got four votes right now, the fifth vote ought to move it.) – sarnold Nov 18 '11 at 8:07
up vote 2 down vote accepted

For disconnected machines, the apt-offline tool promises to make installing packages tolerable:

Description: offline apt package manager
 apt-offline is an Offline APT Package Manager
 apt-offline can fully update and upgrade an APT based distribution without
 connecting to the network, all of it transparent to apt
 apt-offline can be used to generate a signature on a machine (with no network).
 This signature contains all download information required for the apt database
 system. This signature file can be used on another machine connected to the
 internet (which need not be a Debian box and can even be running windows) to
 download the updates.
 The downloaded data will contain all updates in a format understood by apt and
 this data can be used by apt-offline to update the non-networked machine.
 apt-offline can also fetch bug reports and make them available offline

You could look into the Debian backports repositories to bring newer software to older distributions. It might not be transparent to the rest of the system, but hopefully better than relying on compiling from source.

share|improve this answer
FYI, Lenny is currently oldstable and still has security support. Including the recent bind9 DSA. – derobert Nov 18 '11 at 8:04
Sweet; that saves the hassle of backports. I never really got the hang of the Debian names (I always just ran unstable on my workstations, until I popped over to Ubuntu -- where the names make even less sense). – sarnold Nov 18 '11 at 8:07 may help some, as might So does the actual bind9 DSA at – derobert Nov 18 '11 at 8:35

Why do you need bind9 if your Server is offline? Make it online and:

# sudo apt-get update && sudo apt-get upgrade bind9

Or download latest bind9 packages on online machine:

# apt-get -d install bind9

It should be stored here:

# ls -l /var/cache/apt/archives/bind9*

Copy files to your offline Server and execute:

 # apt-get install bind9

Something like that...

share|improve this answer
Well, the obvious answer is that the server is connected to a network, maybe even an internet, but not the Internet. (Having name resolution on your internal networks is quite useful, even on networks which aren't connected to the Internet for security or cost reasons) – derobert Nov 18 '11 at 8:30
You'd also need the Releases files and so forth. If you're not using something like apt-offline but moving packages by hand, you might as well stick with dpkg -i on the target machine. – sarnold Nov 18 '11 at 8:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.