首页 > 解决方案 > 有人知道如何在 Centos8 上安装 `moreutils` 吗?

问题描述

有人知道如何moreutils在 Centos8 上安装吗?

我收到此错误:

[root@default-bento-centos-8 vagrant]# dnf install moreutils
Last metadata expiration check: 0:19:17 ago on Tue 17 Aug 2021 08:27:50 PM UTC.
Error:
 Problem: conflicting requests
  - nothing provides perl(IPC::Run) needed by moreutils-0.63-1.el8.x86_64
  - nothing provides perl-IPC-Run needed by moreutils-0.63-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
  
[root@default-bento-centos-8 vagrant]# dnf -y --enablerepo=PowerTools install moreutils
Error: Unknown repo: 'PowerTools'

我已经安装了epel-releaseperl软件包。

标签: centos8moreutils

解决方案


enable repo 参数区分大小写,powertools 需要完全小写,而不是 Pascal Cased。

这有效:

dnf install epel-release -y
dnf --enablerepo=powertools install moreutils -y

推荐阅读