当前位置: 首页 > 工具软件 > TO-DO > 使用案例 >

yum: Nothing to do

龚苏燕
2023-12-01

系统为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

安装成功,如下:

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

Dependencies Resolved

=================================================================================================================================================================================================================
 Package                                       Arch                                            Version                                                    Repository                                        Size
=================================================================================================================================================================================================================
Installing:
 wget                                          x86_64                                          1.14-18.el7_6.1                                            updates                                          547 k

Transaction Summary
=================================================================================================================================================================================================================
Install  1 Package

Total download size: 547 k
Installed size: 2.0 M
Downloading packages:
wget-1.14-18.el7_6.1.x86_64.rpm                                                                                                                                                           | 547 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : wget-1.14-18.el7_6.1.x86_64                                                                                                                                                                   1/1 
  Verifying  : wget-1.14-18.el7_6.1.x86_64                                                                                                                                                                   1/1 

Installed:
  wget.x86_64 0:1.14-18.el7_6.1                                                                                                                                                                                  

Complete!
 类似资料:

相关阅读

相关文章

相关问答