系統爲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!