侧边栏壁纸
博主头像
TLYAN

只要芝麻,不要西瓜.............纯大神之作
古人有雲:吃得苦中苦方為人上人

  • 累计撰写 130 篇文章
  • 累计收到 10 条评论
centos8平台yum无法安装一些常用软件的解决,如:screen,iftop,nethogs
2023-10-02 17:10:00 779阅读 0评论 0点赞

<h2 style="margin: 10px 0px; padding: 0px; line-height: 1.5; font-size: 21px; font-family: verdana, Arial, Helvetica, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);">一,例如:安装screen时报错:</h2><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; transition-duration: 0.2s; transition-property: background, font-size, border-color, border-radius, border-width, padding, margin, color; overflow: auto; font-family: &quot;Courier New&quot;, serif; overflow-wrap: break-word;">[root@localhost&nbsp;~]#&nbsp;yum&nbsp;-y&nbsp;install&nbsp;screen
上次元数据过期检查:0:44:51&nbsp;前,执行于&nbsp;2023年10月02日&nbsp;星期一&nbsp;01时22分39秒。
未找到匹配的参数:&nbsp;screen
错误:没有任何匹配:&nbsp;screen</pre><h2 style="margin: 10px 0px; padding: 0px; line-height: 1.5; font-size: 21px; font-family: verdana, Arial, Helvetica, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);">二,解决:</h2><p style="margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);">centos8上yum源里面没有epel,而screen等一些软件被迁移到了epel源,</p><p style="margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);">所以我们需要在centos8上先安装epel源</p><p style="margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);">然后就可以安装screen了</p><p style="margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);">&nbsp;</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; transition-duration: 0.2s; transition-property: background, font-size, border-color, border-radius, border-width, padding, margin, color; overflow: auto; font-family: &quot;Courier New&quot;, serif; overflow-wrap: break-word;">[root@localhost&nbsp;liuhongdi]#&nbsp;yum&nbsp;install&nbsp;epel-release</pre><p style="margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);">&nbsp;</p><h2 style="margin: 10px 0px; padding: 0px; line-height: 1.5; font-size: 21px; font-family: verdana, Arial, Helvetica, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);">三,重新尝试安装</h2><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; transition-duration: 0.2s; transition-property: background, font-size, border-color, border-radius, border-width, padding, margin, color; overflow: auto; font-family: &quot;Courier New&quot;, serif; overflow-wrap: break-word;">[root@localhost&nbsp;liuhongdi]#&nbsp;yum&nbsp;install&nbsp;screen
[root@localhost&nbsp;liuhongdi]#&nbsp;yum&nbsp;install&nbsp;iftop
[root@localhost&nbsp;liuhongdi]#&nbsp;yum&nbsp;install&nbsp;nethogs</pre><p style="margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);">已不再提示匹配不到</p><p style="margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: verdana, Arial, Helvetica, sans-serif; font-size: 14px; text-wrap: wrap; background-color: rgb(255, 255, 255);">&nbsp;</p><h2 style="margin: 10px 0px; padding: 0px; line-height: 1.5; font-size: 21px; font-family: verdana, Arial, Helvetica, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);">四,查看本地centos的版本</h2><pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; transition-duration: 0.2s; transition-property: background, font-size, border-color, border-radius, border-width, padding, margin, color; overflow: auto; font-family: &quot;Courier New&quot;, serif; overflow-wrap: break-word;">[root@localhost&nbsp;liuhongdi]#&nbsp;cat&nbsp;/etc/redhat-release&nbsp;
CentOS&nbsp;Linux&nbsp;release&nbsp;8.1.1911&nbsp;(Core)</pre><p><br/></p>

版权所有:《小唐博客-唐联艳-我可以告诉你》 => 《centos8平台yum无法安装一些常用软件的解决,如:screen,iftop,nethogs
本文地址:https://www.tlyan.com/post-105.html
除非注明,文章均为 《小唐博客-唐联艳-我可以告诉你》 原创,欢迎转载!转载请注明本文地址,谢谢。

分享本文至:

扫描二维码,在手机上阅读

评论

取消