yum 安装找不到 perf 库
Yum install can't find perf library
我正在尝试 yum install perf
(this tool),但我得到:
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
No package perf available.
Error: Nothing to do
我的 OS 详细信息:Linux version 2.6.32
、Red Hat 4.4.5-6
(来自 /proc/version
)。
我也试过 yum install linux-tools
但没有成功。我链接的网页说这应该从 2.6.31
内核版本开始可用,但事实并非如此!
有什么我可以做的或者我可以使用的替代方法吗?
RHEL 4 是 really old 并且它的内核不支持您链接的维基百科文章中所写的 perf
Perf is natively supported in many popular Linux distributions, including Red Hat Enterprise Linux (since its version 6 released in 2010).
问题是大多数默认的 CentOS 存储库在我使用的服务器上的存储库列表中被禁用。您可以查看 repos 运行 yum repolist all
.
的状态
然后 运行 yum-config-manager --enable C6*
启用所有 ID 以 C6 开头的存储库。这解决了我的问题!
我正在尝试 yum install perf
(this tool),但我得到:
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
Setting up Install Process
No package perf available.
Error: Nothing to do
我的 OS 详细信息:Linux version 2.6.32
、Red Hat 4.4.5-6
(来自 /proc/version
)。
我也试过 yum install linux-tools
但没有成功。我链接的网页说这应该从 2.6.31
内核版本开始可用,但事实并非如此!
有什么我可以做的或者我可以使用的替代方法吗?
RHEL 4 是 really old 并且它的内核不支持您链接的维基百科文章中所写的 perf
Perf is natively supported in many popular Linux distributions, including Red Hat Enterprise Linux (since its version 6 released in 2010).
问题是大多数默认的 CentOS 存储库在我使用的服务器上的存储库列表中被禁用。您可以查看 repos 运行 yum repolist all
.
然后 运行 yum-config-manager --enable C6*
启用所有 ID 以 C6 开头的存储库。这解决了我的问题!