简体   繁体   English

如何知道我已经在 Octave 中下载了哪些软件包?

[英]How to know what packages I already have downloaded in Octave?

I just installed Octave a few days ago and think I have been installing packages using the "pkg load name" function but never get a confirmation or anything that looks like the software is trying to download them.几天前我刚刚安装了 Octave 并认为我一直在使用“pkg load name”功能安装软件包,但从未得到确认或任何看起来像软件试图下载它们的东西。 I also tried pkg install -forge package_name but that doesn't seem to work.我也试过 pkg install -forge package_name 但这似乎不起作用。 Is there a difference between the two calls?这两个调用有区别吗?

And;和; How can I know they are downloading?我怎么知道他们正在下载? And where can I find a list of them that are?我在哪里可以找到它们的列表?

The download function and automatic package installation in octave 4.2.1 is broken under windows. windows下octave 4.2.1下载功能和自动安装包的功能坏了。 Nevertheless the standard packets come with the base installation.然而,标准数据包随基本安装一起提供。 Just type只需输入
pkg list
in the octave console to display all installed packages.在八度控制台中显示所有已安装的软件包。 In my case the resulting list starts with these lines在我的情况下,结果列表以这些行开头

Package Name         | Version | Installation directory
---------------------+---------+-----------------------
     communications  |   1.2.1 | C:\Octave\OCTAVE~1.1\share\octave\packages\communications-1.2.1
            control  |   3.0.0 | C:\Octave\OCTAVE~1.1\share\octave\packages\control-3.0.0
     data-smoothing  |   1.3.0 | C:\Octave\OCTAVE~1.1\share\octave\packages\data-smoothing-1.3.0
           database  |   2.4.2 | C:\Octave\OCTAVE~1.1\share\octave\packages\database-2.4.2
          dataframe  |   1.1.0 | C:\Octave\OCTAVE~1.1\share\octave\packages\dataframe-1.1.0
...

To get package information programmatically use以编程方式获取包信息使用

[dummy,info]=pkg('list');

info is a cell array of structures containing information about the packages. info是包含有关包的信息的结构元胞数组。 You can eg read the information about name and load state:例如,您可以阅读有关名称和负载状态的信息:

>> info{1}.name
ans = signal
>> info{1}.loaded
ans = 0

To get help about the package function enter help pgk on the command line.要获得有关包功能的help pgk ,请在命令行中输入help pgk This help is currently (Octave 5.1) not included in the html documentation.此帮助当前 (Octave 5.1) 未包含在 html 文档中。 That means doc help does NOT display this help page.这意味着doc help不会显示此帮助页面。

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

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