Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to download a complete off line openssh-server package installer. I need the offline package to setup for my school project but I don't have the internet facility in the lab.

share|improve this question

3 Answers 3

up vote 1 down vote accepted

If you will execute sudo apt-get download openssh-server you will get a .deb file that can be installed offline.

However, as there are several dependencies packages that are required by openssh-server you will probably want to download all of them too.
To do it execute this instead: sudo apt-get build-dep --download-only --reinstall -o dir::cache=<path_to_save> openssh-server. where <path_to_save> is where you want the downloaded dependencies to be saved.

share|improve this answer
    
this is giving me the following error bash: cd: /home/user/dir/sudo: No such file or directory –  coder Mar 18 '12 at 12:57
    
Are you running Ubuntu? –  yossile Mar 18 '12 at 12:59
    
yes ubuntu 11.10 –  coder Mar 18 '12 at 13:02
    
sorry you were correct i typed it wrong.Now can you please explain what to do with these packages on the other computers? –  coder Mar 18 '12 at 13:04
    
Have all .deb in one folder and on the other computer execute 'sudo dpkg -i *.deb' –  yossile Mar 18 '12 at 14:34

Steps:

  • Get the "deb" file
  • Give the command by pointing offline package file

In order to get offline installation file, follow this command:

sudo apt-get –download-only openssh-server

Install it by using “deb” file:

sudo dpkg -i /home/yupana/Desktop/ssh.deb

share|improve this answer

I have written some scripts to handle using apt-get without an internet connection. you may want to check it out.

https://gitorious.org/gapt-get

share|improve this answer

Your Answer

 
discard

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.