Quantcast
Channel: Anthoniraj's Blog » Administration
Viewing all articles
Browse latest Browse all 10

Offline Installation of Debian Packages with Dependencies in Ubuntu

$
0
0

Internet Connection is necessary for effectively using and installing softwares in Ubuntu Operating System. But most of time, especially in Developing country like India, users want to use all features of Ubuntu without Internet connection. Getting unlimited Internet connection will not be easy and not economy. also many colleges they are using Ubuntu OS in their lab without Internet connection[Only LAN will be available]. If they want to install some packages in LAN systems, it is very difficult for installing package in all system separately because debian packages needs so many dependency files. In this article,  i am going to explain you how to install softwares without Internet connection in LAN system
Note: You need Internet connection at-least in one system for downloading the package

System Requirements

  1. Ubuntu OS
  2. Internet Connection atleast in one system for downloading software

Scenario

  1. You have 60 machines in your LAB [192.168.0.2 to 192.168.0.61] and one server [192.168.0.1].
  2. One Machine [192.168.0.10] with Internet connection
  3. Sample Installation Packages – python-numeric, python-scitools

Steps for Downloading Software in Internet Machine [192.168.0.10]

  • Delete all files from /var/cache/apt/archives folder
  • Goto Synaptic Package Manager and select the package you want to instal [In my case python-numeric, python-scitools]

  • Package Manager will automatically detect the depency files for those pack ages. [for python-scitools , the depencies are  pyro ,python-gnuplot python-netcdf]

  • Now tou can select Apply and install option
  • Once the installation is over, you can copy all the packages from /var/cache/apt/archives folder and install in LAN systems.

  • Or use SSH for accessing all system to copy the files from 192.168.0.10 to other LAN system and install package remotely
  • Example:

Source Machine : 192.168.0.10
Destination Machine : 192.168.0.2

  • Goto that packages folder make an archive files

Assume pack.tar.gz is an archive file having all necessary packages.

  • Copy the archive file from source to Destination

#scp  /var/apt-get/cahce/pack.tar.gz anthoniraj@192.168.0.2:/home/anthoniraj/Documents

  • Connect Using SSH

#ssh -X anthoniraj@192.168.0.2
[Enter your Password :]

  • Unzip and Install the Package

# cd /home/anthoniraj/Documents
#tar -xzvf  pack.tar.gz
#cd pack/
#dpkg    -i   *.*

  • You also write one shell script for doing this procedure to all LAN system

Viewing all articles
Browse latest Browse all 10

Trending Articles