Fedora

哪個軟體包包含 Fedora 25 或 28 或 Qubes OS 上的“cpupower”實用程序/命令?

  • September 7, 2018

我需要這個cpupower命令,如果只是為了看看它是否在 Qubes OS 4.0 中執行,其 dom0 執行 Fedora 25,其 VM 執行 Fedora 28(和其他版本,取決於您安裝的 TemplateVM)。

我試過(無濟於事):

sudo qubes-dom0-update --action=search cpupower    
sudo qubes-dom0-update --action=search cpufreq
sudo qubes-dom0-update --action=search power
sudo qubes-dom0-update --action=search cpu

在 Fedora(和 Qubes OS)中,提供cpupower命令的包名是kernel-tools

例子:

在 Qubes OS 4.0 的 dom0 中:

[ctor@dom0 ~]$ sudo qubes-dom0-update kernel-tools
...
Installed:
 kernel-tools.x86_64 4.13.16-100.fc25                         kernel-tools-libs.x86_64 4.13.16-100.fc25

[ctor@dom0 ~]$ sudo cpupower frequency-info
analyzing CPU 0:
 no or unknown cpufreq driver is active on this CPU
 CPUs which run at the same hardware frequency: Not Available
 CPUs which need to have their frequency coordinated by software: Not Available
 maximum transition latency:  Cannot determine or is not supported.
Not Available
 available cpufreq governors: Not Available
 Unable to determine current policy
 current CPU frequency: Unable to call hardware
 current CPU frequency:  Unable to call to kernel
 boost state support:
   Supported: yes
   Active: yes

在 Fedora 28 虛擬機(Qubes OS 4.0)中:

[user@dev01-w-s-f-fdr28 ~]$ sudo dnf install kernel-tools
...
Installed:
 kernel-tools.x86_64 4.17.19-200.fc28                                          
 kernel-tools-libs.x86_64 4.17.19-200.fc28                                     

[user@dev01-w-s-f-fdr28 ~]$ sudo cpupower frequency-info
analyzing CPU 0:
 no or unknown cpufreq driver is active on this CPU
 CPUs which run at the same hardware frequency: Not Available
 CPUs which need to have their frequency coordinated by software: Not Available
 maximum transition latency:  Cannot determine or is not supported.
Not Available
 available cpufreq governors: Not Available
 Unable to determine current policy
 current CPU frequency: Unable to call hardware
 current CPU frequency:  Unable to call to kernel
 boost state support:
   Supported: no
   Active: no

也許這不是 Qubes OS 的方式……如果您對純 Fedora(即不是 Qubes OS)感興趣,

另請參閱此答案。

引用自:https://unix.stackexchange.com/questions/467448