Quote:
Originally Posted by newbiesforever
And is this useful only for upgrading? It sounds that way, from the context of the instructions.
|
The link in my second response is a tutorial.
in the following example I'll demonstrate hoe to install firefox:
(this part is on the machine that you want to install to)
Code:
qlue@qlue:~$ sudo apt-get install firefox-sage
[sudo] password for qlue:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
iceweasel libmozjs2d xul-ext-sage xulrunner-1.9.1
Suggested packages:
xfonts-mathml ttf-mathematica4.1 xprint mozplugger libcanberra0
The following NEW packages will be installed:
firefox-sage iceweasel libmozjs2d xul-ext-sage xulrunner-1.9.1
0 upgraded, 5 newly installed, 0 to remove and 6 not upgraded.
Need to get 9,026 kB of archives.
After this operation, 25.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
qlue@qlue:~$
Code:
qlue@qlue:~$ sudo apt-get -qq --print-uris install firefox-sage > uris
qlue@qlue:~$
Code:
qlue@qlue:~$ awk '{print "wget -O " $2 " " $1}' < uris > /media/WINE/wget.sh
qlue@qlue:~$
note: /media/WINE/ is a flash drive that I have ownership permissions for.
Now, navigate to the flash drive, right-click on the file wget.sh and select properties>permissions. set 'allow this file to run as a program'
Then, take this to another Linux machine that has Internet access and run the script. Wait for it to finish. (click or double click on the file from the file manager. on Ubuntu you will get a dialogue with options, 'select run this file') N.B: the tutorial also explains how to do this from Windows, but the whole technique is different and more complicated)
Now put the flash drive back to your non-networked computer. (note: apt-offline must be installed there)
Code:
qlue@qlue:~$ sudo apt-get -o dir::cache::archives="/media/WINE" install firefox-sage
[sudo] password for qlue:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
iceweasel libmozjs2d xul-ext-sage xulrunner-1.9.1
Suggested packages:
xfonts-mathml ttf-mathematica4.1 xprint mozplugger libcanberra0
The following NEW packages will be installed:
firefox-sage iceweasel libmozjs2d xul-ext-sage xulrunner-1.9.1
0 upgraded, 5 newly installed, 0 to remove and 6 not upgraded.
Need to get 0 B/9,026 kB of archives.
After this operation, 25.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously deselected package xul-ext-sage.
(Reading database ... 101508 files and directories currently installed.)
Unpacking xul-ext-sage (from .../xul-ext-sage_1.4.3-5_all.deb) ...
Selecting previously deselected package firefox-sage.
Unpacking firefox-sage (from .../firefox-sage_1.4.3-5_all.deb) ...
Selecting previously deselected package libmozjs2d.
Unpacking libmozjs2d (from .../libmozjs2d_1.9.1.16-8_i386.deb) ...
Selecting previously deselected package xulrunner-1.9.1.
Unpacking xulrunner-1.9.1 (from .../xulrunner-1.9.1_1.9.1.16-8_i386.deb) ...
Selecting previously deselected package iceweasel.
Unpacking iceweasel (from .../iceweasel_3.5.16-8_i386.deb) ...
Adding 'diversion of /usr/bin/firefox to /usr/bin/firefox.real by iceweasel'
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for menu ...
Processing triggers for hicolor-icon-theme ...
Setting up xul-ext-sage (1.4.3-5) ...
Setting up firefox-sage (1.4.3-5) ...
Setting up libmozjs2d (1.9.1.16-8) ...
Setting up xulrunner-1.9.1 (1.9.1.16-8) ...
update-alternatives: using /usr/lib/xulrunner-1.9.1/xulrunner-stub to provide /usr/bin/xulrunner-stub (xulrunner-stub) in auto mode.
Setting up iceweasel (3.5.16-8) ...
update-alternatives: using /usr/bin/iceweasel to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode.
Processing triggers for menu ...
N: Ignoring file 'opera.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
qlue@qlue:~$
This is a simple example of installing Firefox. (I chose Firefox because I knew it wasn't already installed on my system.) It can be applied to any package you need!