I have a friend who has got a computer that is not connected to internet,is there any way to install software offline easily?
|
feedback
|
|
Check out Keryx, it's an offline repository manager- it lets you download updates and new programs (with dependencies) to your flash drive. Its interface is similar to synaptic but it works on a pendrive (don't need installation). Unfortunately, the GUI needs wxwidgets, which don't come preinstalled on ubuntu (they're cross-platform and installable from here and ubuntu repository here). It can only install software in a Ubuntu system, but you can download the updates or new packages in any Linux, Windows or OS/X. Here you can find a tutorial. Launchpad also hosts downloadable files. | |||||
feedback
|
|
A quick hack If your friend uses the same version of Ubuntu as you and wants the same packages, a quick hack is to copy all the packages you downloaded for your install to his machine. The .deb files are stored in This assumes that your package manager is not setup to delete the packages straight after install. It also assumes that you are running the same architecture version (32bit or 64bit). A DVD repository If you want the latest bug fixes and security patches available then have a look at this tutorial: http://ubuntuforums.org/showthread.php?t=352460 which covers creating your own DVD repository. | |||
|
feedback
|
|
In synaptic you can select the packages you want to install and under the first menu there is an option to generate a script which you can take to another machine and run there. This script will "wget" (i.e. download") all the packages you specified that you wanted (and their dependencies) which you run on a computer that does have internet access. Once run you'll have all the package files needed by the disconnected computer. Carry them on a CD/USB stick and install them "sudo dpkg -i *.deb". | |||
|
feedback
|
An USB repositoryIf you have a decent sized USB stick - assuming around 4-8Gb (or external hard drive) you can set up a custom copy of the Ubuntu repository and configure that as a local repository as covered in https://help.ubuntu.com/community/AptGet/Offline/Repository/ To get the actual package files (the .deb files), I suggest using apt-mirror. The apt-mirror package will help you create a custom mirror which should be smaller than the 30Gb of the full repository. Install the package:
and edit its configuration file
Only include the repository sections you want. Here is a simple example that copies the binary .deb files from all 4 sections (main, restricted, universe and multiverse) as well as the latest bug fixes.
It is guesstimated that you will need around 15Gb of space for all 4 sections, without the source. I have put the path for all the .deb files to be /tmp, make sure you have enough space so your hard drive does not fill up (if your hard drive does fill up and your computer freezes, /tmp should be cleared with a reboot). If you just want the main files, remove the restricted, universe and multiverse names from the configuration file. If you are using a different architecture (you have 64bit, but your friend has 32 bit) then add the following at the start of the mirror.list configuration file:
Once you have the apt-mirror configuration you want, run Once you have the .deb files, copy the files to your USB memory stick (or external hard drive) and set up the local repository as per the article mentioned previously. Test it works before taking it to your friend!! | ||||
|
feedback
|
|
I recommend APTonCD: http://aptoncd.sourceforge.net | |||
feedback
|
|
I use apt-get with the "--print-uris" option to do it. I also add "-qq" so it would be quiet. Use sed to remove extra characters added to some filenames (something like 3%2a) and to get the url, filename and md5sum of files. Use wget to download the files. Use md5sum to check if the files are downloaded properly. You may use this to create a Windows Command batch file and an MD5Sum file to make sure the files are downloaded correctly. CommandsCreate script:
Examples:
Create md5sum file:
Examples:
You need md5sum for Windows if you're using that operating system to download files. Create script to download repository listings:
Checking MD5 SumsYou may add these to the ends of scripts to check md5sum: Linux:
Windows (uses older md5sum, do not support --quiet):
To add automatically to script:
Installing List Files (Update Command)You need to use bunzip2 to extract the repository list files:
Then copy to listing folder (current folder only contains list files):
Above combined (current folder may contain other files):
Faster DownloadsIf you want to make downloading the files faster, try using Axel: http://goo.gl/AC4k3. Replace Folder HierarchyI usually create a folder like this:
Then change This will separate the *.deb files and list files into different folders. Updating your system
Download Executables for WindowsWget for Windows: http://gnuwin32.sourceforge.net/packages/wget.htm md5sum for Windows: http://gnuwin32.sourceforge.net/packages/coreutils.htm or http://www.etree.org/cgi-bin/counter.cgi/software/md5sum.exe You may also use the ones from MinGW, which are what I use. You only need wget.exe, md5sum.exe and the necessary shared libraries. Check the section "Folder Hierarchy". Notes
| ||||
|
feedback
|
Offline RepositoryHow to create an offline repository is described here: you just have to download the appropriate files from archive.ubuntu.com. Alternatively, you could use EDIT: Another approach based on a local rchive of
| ||||
|
feedback
|
|
Start with a clean install or VM. Install the packages you want on one PC Run aptoncd Note that aptoncd only backs up things in the current apt-cache. | |||||
feedback
|
|
Yes. You can download the DVD iso, burn it on a DVD, and install the software from the DVD. See CDs and DVDs can be given as source to package managers in the same way as online archives. | |||
|
feedback
|
|
hey just go here but it's repository from indonesia , type what you want, choose your version of ubuntu, and it comes out with all dependencies | |||
|
feedback
|
|
I suggest to customize Live CDs and install them. You also can download the files on http://packages.ubuntu.com/filename, but then you have to pay attention to the dependencies, too. | ||||
|
feedback
|
|
Another possibility is to use remastersys. This tool allows you to make an iso image from your own system and after creating a bootable usb stick via unetbootin you can install a customized system to as many computers you want. | |||
|
feedback
|
|
Step 1: Get the download URLs in a file : Execute the following command replacing package-names with required ones, separating by a space. $apt-get -y install --print-uris package-name | cut -d\' -f2 | grep http:// > apturls Step 2: Copy this file (apturls) to a machine which has high-speed Internet access, and execute the following command to download the packages: $wget -i path-to-apturls-file Step 3: Now get those downloaded packages to your machine, and install them using : $cd path-to-the-downloaded-packages-directory $sudo dpkg -i *.deb Done! | ||||
|
feedback
|
|
This is not a fully detailed answer, but at a high level you could:
| |||
|
feedback
|
|
Maybe you take a look at the SuperDeb Creator? | |||
feedback
|



