Octave for Microsoft Windows: Difference between revisions

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.  


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.
150

edits