Home » Linux and Unix » How to install any package on a Linux without internet? (offline installation)

How to install any package on a Linux without internet? (offline installation)

It is kind a tricky situation. If you want to install a package on your Linux, you might use Software Center or command prompt. It fetches and install the package via internet for you. What if you don’t have the internet?

Steps are simple:

  1. Get the package somehow 
  2. Give the command by pointing offline package file

This is an example of installing SSH on Ubuntu 12.10 offline.

  • In order to have offline installation file, follow this command:
sudo apt-get --download-only openssh-server

image

  • Install it by using deb file:
sudo dpkg -i /home/name/Desktop/ssh.deb

image2

You can use the similar steps for almost any kind of packages!

Ned Sahin

Blogger for 20 years. Former Microsoft Engineer. Author of six books. I love creating helpful content and sharing with the world. Reach me out for any questions or feedback.

Leave a Comment