linux,Centos7系统yum问题,显示已经安装wget,但实际不能使用

yum更新时

[root@centos7 ~]# yum update
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
No packages marked for update

#加载的插件:最快的镜像,langpacks 
#配置中多次列出存储库epel 
#从缓存的主机文件加载镜像速度*没有标
#记为更新的软件包

 安装软件包时,yum说名显示安装,但实际上不能使用。

[root@VM-0-9-centos ~]# yum -y install wget
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version
Nothing to do

加载的插件:最快的镜像,langpacks 
*配置中多次列出存储库epel 
*从缓存的主机文件加载镜像速度
*已安装软件包wget-1.14-18.el7_6.1.x86_64和最新版本
*无需执行任何操作

[root@VM-0-9-centos ~]# wget
-bash: wget: command not found
#yum显示安装,但实际并没有作用

解决:

卸载:yum remove wget 

重新安装:yum -y install wget 

ps:这个问题搞的我很尴尬!备份,更新了好多次yum的源/etc/yum.repos.d

 

 

  • 5
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值