Octave for Microsoft Windows: Difference between revisions

Jump to navigation Jump to search
m
→‎Pre-installed Packages: fixed heading alignment
m (→‎Pre-installed Packages: fixed heading alignment)
(4 intermediate revisions by the same user not shown)
Line 37: Line 37:
   >> pkg list
   >> pkg list


The output for preinstalled global packages included with version 6.1.0 when installed into {{Path|C:\Octave}} is:
The output for preinstalled global packages included with version 6.2.0 when installed into {{Path|C:\Octave}} is:
                                                                                              
                                                                                              
     Package Name        | Version | Installation directory
     Package Name        | Version | Installation directory
     ---------------------+---------+-----------------------
     ---------------------+---------+-----------------------
                   audio  |  2.0.2 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\audio-2.0.2
                   audio  |  2.0.2 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\audio-2.0.2
         communications  |  1.2.2 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\communications-1.2.2
         communications  |  1.2.2 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\communications-1.2.2
                 control  |  3.2.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\control-3.2.0
                 control  |  3.2.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\control-3.2.0
         data-smoothing  |  1.3.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\data-smoothing-1.3.0
         data-smoothing  |  1.3.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\data-smoothing-1.3.0
               database  |  2.4.4 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\database-2.4.4
               database  |  2.4.4 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\database-2.4.4
               dataframe  |  1.2.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\dataframe-1.2.0
               dataframe  |  1.2.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\dataframe-1.2.0
                   dicom  |  0.4.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\dicom-0.4.0
                   dicom  |  0.4.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\dicom-0.4.0
               financial  |  0.5.3 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\financial-0.5.3
               financial  |  0.5.3 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\financial-0.5.3
                   fits  |  1.0.7 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\fits-1.0.7
                   fits  |  1.0.7 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\fits-1.0.7
     fuzzy-logic-toolkit  |  0.4.5 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\fuzzy-logic-toolkit-0.4.5
     fuzzy-logic-toolkit  |  0.4.6 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\fuzzy-logic-toolkit-0.4.6
                     ga  |  0.10.1 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\ga-0.10.1
                     ga  |  0.10.2 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\ga-0.10.2
                 general  |  2.1.1 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\general-2.1.1
                 general  |  2.1.1 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\general-2.1.1
           generate_html  |  0.3.2 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\generate_html-0.3.2
           generate_html  |  0.3.2 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\generate_html-0.3.2
               geometry  |  4.0.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\geometry-4.0.0
               geometry  |  4.0.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\geometry-4.0.0
                     gsl  |  2.1.1 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\gsl-2.1.1
                     gsl  |  2.1.1 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\gsl-2.1.1
                   image  |  2.12.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\image-2.12.0
                   image  |  2.12.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\image-2.12.0
     instrument-control  |  0.6.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\instrument-control-0.6.0
     instrument-control  |  0.6.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\instrument-control-0.6.0
               interval  |  3.2.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\interval-3.2.0
               interval  |  3.2.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\interval-3.2.0
                     io  |  2.6.3 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\io-2.6.3
                     io  |  2.6.3 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\io-2.6.3
         linear-algebra  |  2.2.3 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\linear-algebra-2.2.3
         linear-algebra  |  2.2.3 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\linear-algebra-2.2.3
                   lssa  |  0.1.4 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\lssa-0.1.4
                   lssa  |  0.1.4 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\lssa-0.1.4
                   ltfat  |  2.3.1 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\ltfat-2.3.1
                   ltfat  |  2.3.1 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\ltfat-2.3.1
                 mapping  |  1.4.1 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\mapping-1.4.1
                 mapping  |  1.4.1 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\mapping-1.4.1
                 matgeom  |  1.2.2 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\matgeom-1.2.2
                 matgeom  |  1.2.2 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\matgeom-1.2.2
           miscellaneous  |  1.3.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\miscellaneous-1.3.0
           miscellaneous  |  1.3.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\miscellaneous-1.3.0
                     nan  |  3.5.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\nan-3.5.0
                     nan  |  3.5.2 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\\nan-3.5.3
                 netcdf  |  1.0.14 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\netcdf-1.0.14
                 netcdf  |  1.0.14 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\netcdf-1.0.14
                   nurbs  |  1.3.13 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\nurbs-1.3.13
                   nurbs  |  1.3.13 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\nurbs-1.3.13
                     ocs  |  0.1.5 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\ocs-0.1.5
                     ocs  |  0.1.5 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\ocs-0.1.5
                   optim  |  1.6.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\optim-1.6.0
                   optim  |  1.6.1 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\optim-1.6.1
             optiminterp  |  0.3.6 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\optiminterp-0.3.6
             optiminterp  |  0.3.6 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\optiminterp-0.3.6
             quaternion  |  2.4.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\quaternion-2.4.0
             quaternion  |  2.4.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\quaternion-2.4.0
               queueing  |  1.2.7 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\queueing-1.2.7
               queueing  |  1.2.7 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\queueing-1.2.7
                 signal  |  1.4.1 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\signal-1.4.1
                 signal  |  1.4.1 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\signal-1.4.1
                 sockets  |  1.2.1 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\sockets-1.2.1
                 sockets  |  1.2.1 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\sockets-1.2.1
               sparsersb  |  1.0.8 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\sparsersb-1.0.8
               sparsersb  |  1.0.8 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\sparsersb-1.0.8
                 splines  |  1.3.3 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\splines-1.3.3
                 splines  |  1.3.3 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\splines-1.3.3
             statistics  |  1.4.2 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\statistics-1.4.2
             statistics  |  1.4.2 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\statistics-1.4.2
                     stk  |  2.6.1 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\stk-2.6.1
                     stk  |  2.6.1 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\stk-2.6.1
                 strings  |  1.2.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\strings-1.2.0
                 strings  |  1.2.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\strings-1.2.0
                 struct  |  1.0.16 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\struct-1.0.16
                 struct  |  1.0.17 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\struct-1.0.17
               symbolic  |  2.9.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\symbolic-2.9.0
               symbolic  |  2.9.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\symbolic-2.9.0
                 tisean  |  0.2.3 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\tisean-0.2.3
                 tisean  |  0.2.3 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\tisean-0.2.3
                     tsa  |  4.6.2 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\tsa-4.6.2
                     tsa  |  4.6.2 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\tsa-4.6.2
                   video  |  2.0.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\video-2.0.0
                   video  |  2.0.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\video-2.0.0
                 windows  |  1.5.0 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\windows-1.5.0
                 windows  |  1.6.0 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\windows-1.6.0
                 zeromq  |  1.5.2 | C:\Octave\octave-6.1.0-w64\mingw64\share\octave\packages\zeromq-1.5.2
                 zeromq  |  1.5.2 | C:\Octave\octave-6.2.0-w64\mingw64\share\octave\packages\zeromq-1.5.2


Note that the included packages shown above are stored in the default ''global package location'' within the Octave installation folder.
Note that the included packages shown above are stored in the default ''global package location'' within the Octave installation folder.
Line 95: Line 95:
   >> pkg rebuild
   >> pkg rebuild


That will force octave to look for both ''local'' and ''global'' packages in the set locations to repopulate the list of available packages.  Note that  'local' packages always take precedence if the same package is present in both locations.  
That will force octave to look for both ''local'' and ''global'' packages in the set locations to repopulate the list of available packages.  Note that  'local' packages always take precedence if the same package is present in both locations.


===Package Installation and Update===
===Package Installation and Update===
Line 111: Line 111:
   >> pkg install package_file_name.tar.gz
   >> pkg install package_file_name.tar.gz


Note that all of the commands above will perform ''local'' or ''global'' package installs according to the user's Administrator access level.  E.g., if an update is found for a global package with a non-elevated user, the updated version will be installed to the ''local'' package location, leaving the old version intact in the ''global'' package location.  This behavior can be changed by calling the install command with the {{Path|-global}} option. For example:
Note that all of the commands above will perform ''local'' or ''global'' package installs according to the user's Administrator access level.  E.g., if an update is found for a global package with a non-elevated user account, the updated version will be installed to the ''local'' package location, leaving the old version intact in the ''global'' package location.  This behavior can be changed by calling the install command with the {{Path|-global}} option. For example:


To install a global package to the latest version (requires write-access to the global-list location) you can use:
To install a global package to the latest version (requires write-access to the global-list location) you can use:
Line 117: Line 117:
   >> pkg install -forge -global <package_name>
   >> pkg install -forge -global <package_name>


Note that the update command does not take -local or -global options, and always performs an update according to the user's Administrator access level.  
Note also that the update command does not take -local or -global options, and always performs an update according to the user's Administrator access level. As such if Octave was installed from a zip or 7z archive in a non-privileged account, 'pkg update' cannot be used to update global packages, they must be updated manually using 'pkg install'


Detailed instructions for installing individual Octave Forge packages are given at https://octave.sourceforge.io/packages.php.
Detailed instructions for installing individual Octave Forge packages are given at https://octave.sourceforge.io/packages.php.
153

edits

Navigation menu