Installing anything offline in Ubuntu

Before reading this post it is a good idea to refer the following post:
How to Install Anything In Ubuntu:
http://monkeyblog.org/UBUNTU/installing/

Brief description of Ubuntu packages:
"I can't find an installer or .exe file for Ubuntu" - is a common complaint of Ubuntu newbies.Ubuntu based on Debian project so it uses .deb packages for installing anything (Red Hat based flavors like Fedora uses .rpm packages).

GNU/Linux operating systems uses an innovative library sharing method in which system files will be shared between programs thus optimizes disk space usage effectively.
eg., assume that you are using two media players in Ubuntu like VLC media player and Amarok music player.
For playing an ogg media file both players use ogg decoding library present in your system (library files will be in /usr/lib/ directory).So one program cannot be run without its dependencies.

So if we are installing anything in Ubuntu, every package will list and download its dependencies automatically.Ubuntu  uses apt-get for this purpose.apt-get having different GUI front ends like Synaptic (System >> Administration >> Synaptic Package manager), aptitude, gnome-apt etc.

But this 'dependency tradition' makes installing anything offline in Ubuntu is cumbersome.Users who have a slow or no internet connection are the 'victims' of these.http://packages.ubuntu.com/ is a core repository from where we can download packages manually.But there is no method there to download dependencies automatically.So it is sure that you will mess up with downloading dependencies and its dependencies if you are not aware of what packages are there in your system and what not.But this is not as much as painstaking as you may think.Read below

Solutions:

1. Manual Download
   You can consider manual downloading from repositories (eg: http://packages.ubuntu.com/).Download the package you want to install through a computer that having an internet connection and transfer it to your Ubuntu box.Open it with GDebi package installer (just double click on .deb file).It will list dependency files if required.You can download those dependencies again and complete installing of package.

More: You can generate download scripts that contains package names and its dependencies using Synaptic package manager.
Open Synaptic 
mark the packages you want to install 
dependencies will also be marked automatically
open File on menu
click Generate package download script and save the script


Now you can copy package names from the saved script.

2. APTonCD
    APTonCD is a program for Debian systems which can be used to backup the packages (found in /var/cache/apt/archives/ folder) of your system.If you are reinstalling your Ubuntu or want to ship your programs with all dependencies to a Ubuntu system which has no internet connection then you can use this nice application.APTonCD makes CD images (.iso files) of entire packages.You can make CDs or DVD from these images.You can retrieve these packages from CD either using Synaptic Package Manager or using APTonCD itself.You can also restore CD images through APTonCD.

Luckily you can install APTonCD .deb file without any dependency issue in a freshly installed Ubuntu PC.
Download it from http://aptoncd.sourceforge.net/ and double click.

APTonCD is simple and intuitive.Some screen shots:





3. Addon CDs
    Several vendors or volunteers provide Addon CDs for Ubuntu.Vendors may charge you for shipping and all.Volunteer efforts are not matured enough either.You can search for those.

Comments

0 Responses to "Installing anything offline in Ubuntu"

Get Updated

Subscribe to feed

Enter your email address:

Delivered by FeedBurner

Blog Archive