centos8平台yum无法安装一些常用软件的解决,如:screen,iftop,nethogs
首页 > 学习分享    作者:TLYAN   2023年10月2日 9:10 星期一   热度:732°   百度已收录  
时间:2023-10-2 9:10   热度:732° 

<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>

二维码加载中...
本文作者:TLYAN      文章标题: centos8平台yum无法安装一些常用软件的解决,如:screen,iftop,nethogs
本文地址:https://www.tlyan.com/post-105.html
版权声明:若无注明,本文皆为“小唐博客-唐联艳-我可以告诉你”原创,转载请保留文章出处。

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

分享本文至:

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

返回顶部    首页    手机版本    后花园   会员注册   
版权所有:小唐博客-唐联艳-我可以告诉你    站长: TLYAN    主题唐联艳  程序:emlog   粤ICP备15003815号     模板赞助寒光唯美式V2.4.1