简体   繁体   English

如何一次安装,验证和更新所有Octave软件包?

[英]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. 今天我在Windows 7机器上安装了带有GUI的Octave 3.8。 Is there a command that will install all the available Octave packages ? 是否有一个命令可以安装所有可用的Octave软件包? 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. 谢谢。

It looks as if pkg update will update all your installed packages. 看起来pkg update将更新所有已安装的软件包。 See the documentation on pkg for more details. 有关更多详细信息,请参阅有关pkg文档

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. 我还没有找到安装所有软件包的方法,我使用pkg install -forge <package_name>一次一个,这有点单调乏味。 It is also giving me errors when trying to install parallel . 在尝试安装parallel时,它也给了我错误。

Load/Unload all packages at once by executing the following command 通过执行以下命令一次加载/卸载所有包

pkg load all
pkg unload all

On Windows/Mac there is an installer on http://octave.sourceforge.net/ . 在Windows / Mac上, http://octave.sourceforge.net/上有一个安装程序。 This installs all(?) packages but you have to load them with "pkg load". 这会安装所有(?)软件包,但您必须使用“pkg load”加载它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM