yum: Nothing to do

系统为centos7,在安装wget时,执行命令:yum -y install wget,提示如下错误:

Loaded plugins: langpacks, versionlock Excluding 1 update due to versionlock (use "yum versionlock status" to show it) Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version Nothing to do

根据提示猜测是,wget已经安装但没有正常启动,所以就先删除再重新安装,删除执行如下:
yum remove -y wget-1.14-18.el7_6.1.x86_64

执行成功后,再执行安装wget操作,命令如下:
yum install wget -y

【yum: Nothing to do】安装成功,如下:
[root@fanhao-test ~]# yum install wget -y Loaded plugins: langpacks, versionlock Excluding 1 update due to versionlock (use "yum versionlock status" to show it) Resolving Dependencies --> Running transaction check ---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed --> Finished Dependency ResolutionDependencies Resolved================================================================================================================================================================================================================= PackageArchVersionRepositorySize ================================================================================================================================================================================================================= Installing: wgetx86_641.14-18.el7_6.1updates547 kTransaction Summary ================================================================================================================================================================================================================= Install1 PackageTotal download size: 547 k Installed size: 2.0 M Downloading packages: wget-1.14-18.el7_6.1.x86_64.rpm| 547 kB00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : wget-1.14-18.el7_6.1.x86_641/1 Verifying: wget-1.14-18.el7_6.1.x86_641/1 Installed: wget.x86_64 0:1.14-18.el7_6.1Complete!

    推荐阅读