为什么 yum wget 失败?参数不匹配:wget

为什么 yum wget 失败?参数不匹配:wget

我有RHEL9,我试过了

sudo yum install wget

得到

Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Last metadata expiration check: 0:12:43 ago on Mon 20 Feb 2023 10:04:53 AM UTC.
No match for argument: wget

我检查了

yum info wget

得到

Last metadata expiration check: 0:06:37 ago on Mon 20 Feb 2023 10:14:28 AM UTC.
Error: No matching Packages to list

我有epel-release

我的设置有什么问题吗?

答案1

您必须更新您的订阅才能下载依赖项。那么,在rhel9中应该使用dnf命令来安装软件包。

dnf 安装包名

请参阅:[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/managing_software_with_the_dnf_tool/ assembly_installing-rhel-9-content_managing-software-with-the-dnf-tool][1]

相关内容