Wednesday, May 8, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 626  / 2 Years ago, thu, march 10, 2022, 6:53:26

I want to install GNU octave on an offline Ubuntu 20.04 system. I have another Ubuntu 20.04 system which is connected to the Internet. Is there any way I can download all the dependencies, packages required for GNU octave and the source code together on the online system and then install on the offline system?


More From » software-installation

 Answers
2

For Snap Install


Snaps are confined, standalone Linux applications that bundle all their necessary dependencies, which means they do not need to rely on the underlying system, and can run independently of it.


The advantage of using Snap for installing an app like Octave in a computer that does not have Internet access is that everything self-contained. You just need to copy two files.


On the Connected Computer


Open a terminal as the normal user by entering Clrl+Alt+T and enter the command:


snap download octave

This will show the following output:


Fetching snap "octave"
Fetching assertions for "octave"
Install the snap with:
snap ack octave_306.assert
snap install octave_306.snap

Copy of move the two downloaded files, octave_306.assert and octave_306.snap, from the connected computer to a USB flash drive. The files are a little more than 300 MB in total. So, any USB flash drive will do.


On the Unconnected Computer


Copy the two files from the USB drive to your home folder of the Unconnected computer. "Your home folder" is the default folder when you open a terminal.


Open a terminal by entering Clrl+Alt+T and enter these two lines, one at a time:


sudo snap ack ~/octave_306.assert
sudo snap install ~/octave_306.snap

After you type in the first line you will asked for your sudo password. After you enter the second line you will see this output:


octave 7.1.0 from GNU Octave (octave-snap✓) installed

Now Octave is installed in the Unconnected Computer.


You may delete the files octave_306.assert and octave_306.snap from your home folders after Octave is installed.


Reference


Is it possible to install the .snap application in an offline computer?


Note, on my Ubuntu 20.04 I did not need to install the package ubuntu-core as instructed in the above answer.


hope this helps


[#425] Friday, March 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ndeecru

Total Points: 109
Total Questions: 128
Total Answers: 117

Location: Czech Republic
Member since Thu, Aug 11, 2022
2 Years ago
ndeecru questions
Mon, Jun 20, 22, 04:53, 2 Years ago
Thu, Oct 14, 21, 20:53, 3 Years ago
Thu, Apr 28, 22, 10:16, 2 Years ago
;