Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install, verify and update all Octave packages at once?

Today I have installed Octave 3.8 with GUI on my Windows 7 machine. Is there a command that will install all the available Octave packages ? Then I would also like to see a list of all the installed packages, and update them at times. So is there a command that checks for updates of all the installed packages ? Thank you.

like image 915
James C Avatar asked Jan 27 '14 22:01

James C


People also ask

How do I load all packages in Octave?

Install the packages on your working directory. Then add "pkg load pkg_name" command to octave-1.1~\share\octave\site\m\startup\octaverc. It will load the package every time.

How do I install Octave packages?

To install a package, use the pkg command from the Octave prompt by typing: pkg install -forge package_name , where package_name is the name of the package you want to install.

How do I manually install packages in Octave?

To install a package from the Octave Forge, at the Octave prompt type pkg install -forge package_name . This requires an internet connection. If you use a very old Octave version (< 3.4. 0), you'll have to download the package file manually, and use pkg install package_file_name.


2 Answers

It looks as if pkg update will update all your installed packages. See the documentation on pkg for more details.

I haven't found a way to install all packages, I am doing them one at a time using pkg install -forge <package_name>, which is a bit tedious. It is also giving me errors when trying to install parallel.

like image 171
am304 Avatar answered Oct 19 '22 18:10

am304


Load/Unload all packages at once by executing the following command

pkg load all
pkg unload all
like image 3
dkb Avatar answered Oct 19 '22 18:10

dkb