Tag: Installing Ubuntu Packages without Internet
Installing Ubuntu Packages without Internet
by sahab on May.30, 2010, under Ubuntu, ubuntu 10.04, ubuntu 7.10, ubuntu 8.04, ubuntu 8.10, ubuntu 9.04, Ubuntu 9.10
Introduction
In ubuntu one of the biggest problem which people face is installing Softwares/Packages without a working internet connection. Ubuntu’s default installation is very minimal and tries to be a zero-bloat distro.
Before getting started, you need to download all the packages on a computer running Linux. Even a system running in Live environment would suffice, but it would need around 1GB of RAM to accomplish it’s work properly.
Download the packages
The package installation work is actually a 2-step process. First, packages are downloaded and cached in /var/cache/apt/archives folder. Second, they are installed from this archived copy.
You can run a LiveCD of Ubuntu on that system or use it from inside an installed system. Consider the two options.
Live environment
Boot from LiveCD, fire up the package manager, select the packages you want to download and Hit Apply. Packages would be downloaded and installed too. Don’t worry, if they are installed(its temporary session).
From an installed system
If you are at your friend’s place, then instead of downloading and installing the packages, you would prefer to just download the required ones. For this follow the steps.
- Open Package Manager
- Select the packages to be downloaded
- Hit Apply
- It would ask “Apply the following changes”.
- Select the “Download Packages Only” checkbox.
- Click Apply and all the packages are only downloaded to the archive folder
Create the ISO
- Next download and install the package “aptoncd“.
- Open it, select Create.
- APTonCD would search its local cached copy and list you down the package available.
- Click on Burn
- Choose the type of Medium,Destination of the image and filename of the iso.
- Click on Apply.
- After ISO has been made, it would ask you to Burn it to a CD. If you want to burn it, you are welcome, or you can even carry the ISO in your pen/flash drive.
- If you don’t burnt the CD, then please copy the aptoncd.deb file from /var/cache/apt/archives to your pen drive along with that ISO.
Installing on your computer
Now we assume two situations,
- one is that you have burnt the ISO to a CD
- another is that you have copied the created ISO and the aptoncd.deb file to your flash drive.
From CD
Just put the CD in your drive, a new popup would show up notifying you that a CD with offline repository has been detected. Do you want to import it? Accept it to import the package index.
From APTonCD ISO
- Install the aptoncd.deb file from your flash drive by double clicking on it.
- After installation, open APTonCD from System> Administration> APTonCD
- select Restore
- Select the ISO which is to be restored
- It would show you the list of packages which will be restored
- Click Restore and everything would be restored, packages are copied back and the index is also imported
Installing Imported Packages
You just need to open the Package Manager and search for the packages which you need to install. Select it and Click Apply. All done.
If you want to install all the packages from the ISO , search for a metapackage and install it
