Friday, July 15, 2011

Offline Software Installation in Ubuntu.

   Offline installation of softwares in Ubuntu is sometimes a tedious task for some of the Linux users. Since we don't know which are the dependencies currently present in the system and which are the dependencies we want to install newly etc may often confusing. I will give you a nice and easy way of installing softwares with all its dependencies.
     If you have a computer connected to Internet with a fresh Ubuntu installation, first open the synaptic package manager and press the 'reload' button. Mark the software 
you want to install with all its dependencies. Then instead of clicking apply, select 'Generate package download script' from File menu and save the script.
     Now you can use this download script to install that particular software on another computer which is not connected to Internet.

Installing with the generated Download Script.
Firstly change the directory to a directory where you wanted to save the downloaded packages.Then Execute the download script with the following command.

sudo sh samplescript.sh


After finished downloading all the packages, execute the following command from the command prompt.(You should be in the directory where you saved the packages.)


sudo dpkg -i *.deb

Now the desired software will be installed. Enjoy.
Note: Do Not install anything in the computer connected to the Internet from which we are generating the download script. If you any new software is installed in that system some of the dependencies will not be added when we select the packages.
 

I will give you some of the download scripts for some of the commonly using softwares. You can just copy and paste this scripts to a new file.

Gimp 
#!/bin/sh
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/g/gimp/libgimp2.0_2.6.8-2ubuntu1.3_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/g/gimp/gimp-data_2.6.8-2ubuntu1.3_all.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/b/babl/libbabl-0.0-0_0.0.22-1build1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/g/gegl/libgegl-0.0-0_0.0.22-0ubuntu4_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/libm/libmng/libmng1_1.0.9-1ubuntu1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/g/gimp/gimp_2.6.8-2ubuntu1.3_i386.deb
Blender 
!/bin/sh
wget -c http://in.archive.ubuntu.com/ubuntu/pool/universe/o/openal-soft/libopenal1_1.12.854-0ubuntu1~lucid1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/universe/f/freealut/libalut0_1.1.0-2_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/f/ffmpeg/libavutil49_0.5.1-1ubuntu1.1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/libg/libgsm/libgsm1_1.0.13-3_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/s/schroedinger/libschroedinger-1.0-0_1.0.9.is.1.0.8-0ubuntu1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/f/ffmpeg/libavcodec52_0.5.1-1ubuntu1.1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/f/ffmpeg/libavformat52_0.5.1-1ubuntu1.1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/libd/libdc1394-22/libdc1394-22_2.1.2-2_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/f/ffmpeg/libavdevice52_0.5.1-1ubuntu1.1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/universe/f/ftgl/libftgl2_2.1.3~rc5-3_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/g/gettext/gettext_0.17-8ubuntu3_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/universe/o/openjpeg/libopenjpeg2_1.3+dfsg-4_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/f/ffmpeg/libswscale0_0.5.1-1ubuntu1.1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/t/ttf-dejavu/ttf-dejavu-extra_2.30-2_all.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/t/ttf-dejavu/ttf-dejavu_2.30-2_all.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/universe/b/blender/blender_2.49.2~dfsg-1ubuntu1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/c/cvs/cvs_1.12.13-12ubuntu1_i386.deb

Inkscape
#!/bin/sh
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/i/imagemagick/libmagick++2_6.5.7.8-1ubuntu1.1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/i/inkscape/inkscape_0.47.0-2ubuntu2_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.4/libgfortran3_4.4.3-4ubuntu5_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/b/blas/libblas3gf_1.2-2build1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/l/lapack/liblapack3gf_3.2.1-2_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/libw/libwmf/libwmf-bin_0.2.8.4-6.1ubuntu2_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/i/imagemagick/perlmagick_6.5.7.8-1ubuntu1.1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/l/lxml/python-lxml_2.2.4-1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/p/python-numpy/python-numpy_1.3.0-3build1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/p/python-reportlab/python-renderpm_2.4-1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/p/python-reportlab/python-reportlab_2.4-1_all.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/p/python-reportlab/python-reportlab-accel_2.4-1_i386.deb
wget -c http://in.archive.ubuntu.com/ubuntu/pool/main/p/python-uniconvertor/python-uniconvertor_1.1.4-1build1_i386.deb