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

本文记录了在CentOS系统中使用yum命令安装wget软件包时遇到的问题,即安装后无法正常使用的情况。文中详细描述了问题现象,包括安装过程中显示的插件信息、重复的存储库列表、已安装软件包的状态以及最终的命令执行失败提示。同时,提供了具体的解决步骤,即先卸载再重新安装wget。
2729





